New submission from Davide Rizzo <sor...@gmail.com>: urllib2.urlopen('http://foo/url and spaces') will send a HTTP request line like this to the server:
GET /url and spaces HTTP/1.1 which the server obviously does not understand. This contrasts with urllib's behaviour which replaces the spaces (' ') in the url with '%20'. Related: #918368 #1153027 ---------- components: Library (Lib) messages: 147180 nosy: davide.rizzo, orsenthil priority: normal severity: normal status: open title: urllib2 doesn't escape spaces in http requests type: behavior versions: Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13359> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com