[New-bugs-announce] [issue13359] urllib2 doesn't escape spaces in http requests

Davide Rizzo report at bugs.python.org
Sun Nov 6 21:13:47 CET 2011


New submission from Davide Rizzo <sorcio at 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 <report at bugs.python.org>
<http://bugs.python.org/issue13359>
_______________________________________


More information about the New-bugs-announce mailing list