[issue12576] urlib.request fails to open some sites

Senthil Kumaran report at bugs.python.org
Sun Jul 17 03:29:26 CEST 2011


Senthil Kumaran <senthil at uthcode.com> added the comment:

On Sun, Jul 17, 2011 at 12:07:44AM +0000, Ugra Dániel wrote:

> For example IMDb's "Cneonction: close" (not a typo) feature.  But

This is a mistake at the server and urllib relies on the
Connection: close header at some point in time in the process.

You could try with few other sites and see that context manager should
work.

----------
nosy: +orsenthil

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


More information about the Python-bugs-list mailing list