[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

Amaury Forgeot d'Arc report at bugs.python.org
Sat Aug 21 13:56:39 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Hmm, it looks like a web server problem to me.

urllib2 uses the HTTP/1.1 protocol, and sends the "Connection: close" header. I hacked urllib2: when this header is not sent, the content is retrieved normally.

This page: 
http://www.mail-archive.com/users@tomcat.apache.org/msg28684.html
describes the same problem.
The web site above does use Tomcat (can be seen in the response headers), maybe they have a wrong version?

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9655>
_______________________________________


More information about the Python-bugs-list mailing list