I had the same problem and I have finally got it working.
I applied the patch in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=11788#52.
Then, to solve
error in process filter: url-http-generic-filter: Wrong type argument: number-or-marker-p, http/1.1
I just had to add a line to url-http.el:462
which was
(skip-chars-forward "HTTP/") ; Skip HTTP Version
(skip-chars-forward "http/") ; Skip HTTP Version