[New-bugs-announce] [issue12849] urllib2 headers issue
Shubhojeet Ghosh
report at bugs.python.org
Sun Aug 28 21:19:28 CEST 2011
New submission from Shubhojeet Ghosh <shubhojeet.ghosh at yahoo.com>:
There seems to be an issue with urllib2
The headers defined does not match with the physical data packet (from wireshark). Other header parameters such as User Agent, cookie works fine.
Here is an example of a failure:
Python Code:
import urllib2
url = "http://www.python.org"
req = urllib2.Request(url)
req.add_header('Connection',"keep-alive")
u = urllib2.urlopen(req)
Wireshark:
GET / HTTP/1.1
Accept-Encoding: identity
Connection: close
Host: www.python.org
User-Agent: Python-urllib/2.6
----------
components: IO
messages: 143120
nosy: orsenthil, shubhojeet.ghosh
priority: normal
severity: normal
status: open
title: urllib2 headers issue
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12849>
_______________________________________
More information about the New-bugs-announce
mailing list