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

2015-04-02 Thread Demian Brecht

Demian Brecht added the comment:

This doesn't seem to be an issue in 3.4+, the following headers are injected in 
a call to urlopen():

GET / HTTP/1.1
Accept-Encoding: identity
Host: example.com
User-Agent: Python-urllib/3.4
Connection: close

However, this is not the same behaviour in 2.7:

GET / HTTP/1.0
Host: example.com
User-Agent: Python-urllib/1.17

That said, I wouldn't see this as a bug but a feature request, so it should be 
invalid for 2.7.

Setting this to pending to close unless anyone has any objections or further 
details.

--
nosy: +demian.brecht
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-03-05 Thread karl

karl added the comment:

What was the content of http://support.github.com/discussions/site/1510
I can't find it. Is the issue still going on?

--
nosy: +karlcow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-12-21 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo
versions:  -Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-05-18 Thread Dave Abrahams

Dave Abrahams  added the comment:

How many tests did you run?  My two tests were minutes apart.  I have the 
feeling that this has something to do with cacheing behavior on the server.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-05-17 Thread Senthil Kumaran

Senthil Kumaran  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-05-16 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
assignee:  -> orsenthil
nosy: +orsenthil
type:  -> behavior
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2010-05-16 Thread Dave Abrahams

New submission from Dave Abrahams :

According to the RFC, the server is allowed to send back any encoding it likes 
when no Accept-Encoding header is supplied, but all the examples I can find of 
urllib2.urlopen usage assume they're getting plain text back.  I think it would 
be better to inject an Accept-Encoding header when none is explicitly supplied 
so that nobody else trips over this issue.

See http://support.github.com/discussions/site/1510

--
components: Library (Lib)
messages: 105870
nosy: dabrahams
priority: normal
severity: normal
status: open
title: Should urrllib2.urlopen send an Accept-Encoding header?
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com