Skip to content Skip to sidebar Skip to footer

HTTPS Proxies With Requests: [Errno 8] _ssl.c:504: EOF Occurred In Violation Of Protocol

I am using Requests 1.2.3 on Windows 7 x64 and am trying to connect to (any) site via HTTPS using a HTTPS proxy by passing the proxies argument to the request. I don't experience t

Solution 1:

I suspect your proxy is a http proxy over which you can use https (the common case) The problem is, that requests uses https to talk to proxies if the request itself https. Using an explicit protocol (http) for your proxy should fix things: proxies={'https': 'http://IP:PORT'}

Also have a look at https://github.com/kennethreitz/requests/issues/1182


Post a Comment for "HTTPS Proxies With Requests: [Errno 8] _ssl.c:504: EOF Occurred In Violation Of Protocol"