Hi I had the same problem and I have finally got it working.
I applied the patch in https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-03/msg01106.htmlhttps://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:462url-http.el:462
which was
(skip-chars-forward "HTTP/") ; Skip HTTP Version
(skip-chars-forward "http/") ; Skip HTTP Version