This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author davide.rizzo
Recipients davide.rizzo, orsenthil
Date 2011-11-06.20:13:46
SpamBayes Score 0.08213448
Marked as misclassified No
Message-id <1320610427.07.0.982938376676.issue13359@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-11-06 20:13:47davide.rizzosetrecipients: + davide.rizzo, orsenthil
2011-11-06 20:13:47davide.rizzosetmessageid: <1320610427.07.0.982938376676.issue13359@psf.upfronthosting.co.za>
2011-11-06 20:13:46davide.rizzolinkissue13359 messages
2011-11-06 20:13:46davide.rizzocreate