[issue8732] Should urrllib2.urlopen send an Accept-Encoding header?

Senthil Kumaran report at bugs.python.org
Mon May 17 22:30:19 CEST 2010


Senthil Kumaran <orsenthil at gmail.com> added the comment:

HTTP Ref says that Server can send any encoding, if client does not
specify Accept-Encoding header. But if 'identity' is one of the
encoding that server recognizes (?), then it should send it as
identity, which indicates untransformed content.

I also see in the httplib that Accept-Encoding = 'identity' is added in the
request level to the headers. I shall see what is missing here, if it
is not being sent for all requests.

BTW, I could not figure out the problem you are facing from the url
mentioned. I specifically do not see any interleaving gzip and no-gzip
request behaviours at different points.

----------

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


More information about the Python-bugs-list mailing list