[New-bugs-announce] [issue6596] urllib2 bug on CentOS

Anton report at bugs.python.org
Wed Jul 29 12:35:58 CEST 2009


New submission from Anton <rk3dov at gmail.com>:

This code gives HTTP Error 500 on CentOS:
---------------------------------------------
import urllib2
url = 'http://wm.exchanger.ru/asp/XMLWMList.asp?exchtype=1'
t = urllib2.urlopen(url).read()
---------------------------------------------

tcpdump:
---------------------------------------------
...
GET /asp/XMLWMList.asp?exchtype=1?3d2ebf80 HTTP/1.1
Accept-Encoding: identity
Host: wm.exchanger.ru
Connection: close
User-Agent: Python-urllib/2.6
...
---------------------------------------------
"?3d2ebf80" appended to request

% uname -a
Linux xxx.xxx 2.6.18-028stab062.3-ent #1 SMP Thu Mar 26 15:12:05 MSK 
2009 i686 i686 i386 GNU/Linux

The same problem with python 2.4.3. On other systems this code works 
nice.

----------
components: Extension Modules
messages: 91034
nosy: rk3dov
severity: normal
status: open
title: urllib2 bug on CentOS
versions: Python 2.6

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


More information about the New-bugs-announce mailing list