urllib2 EOF occurred in violation of protocol with proxy

Paul Rubin http
Thu May 19 03:46:30 EDT 2005


"Bloke" <rhall at thiess.com.au> writes:
> The site works fine if I do not go through the proxy, so it appears the
> proxy is not returning an EOF.  I been searching for an answer, and
> found many other sites where people have had the same problem.  Some
> have suggested m2crypto.
> 
> Is there a work around using the standard  2.4.1 installation?

I sort of remember some problem like that with Microsoft web servers.
It's not clear that a "workaround" is really the right thing--it's a
security hole, it lets attackers truncate web pages coming through the
proxy without your client app being able to tell the difference.

OpenSSL includes an interactive SSL client (sort of like telnet) that
can be convenient for trying stuff out without having to write code.
Just type for example at the openssl prompt:

   OpenSSL> s_client -connect www.yourhost.com 443
   GET / HTTP/1.0
   <newline>
   <newline>

substituting whatever your host and port are.



More information about the Python-list mailing list