[issue13359] urllib2 doesn't escape spaces in http requests

Krishna Bharadwaj report at bugs.python.org
Wed Nov 9 12:26:13 CET 2011


Krishna Bharadwaj <krishna.bmsce at gmail.com> added the comment:

I have used the quote method to percent encode the url for spaces and similar characters. This is my first patch. Please let me know if there is anything wrong. I will correct and re-submit it. I ran the test_urllib2.py which gave an OK for 34 tests.

Changes are made in two instances:
1. in the open method.
2. in the __init__ of Request class to ensure that the same issue is addressed at the time of creating Request objects.

----------
keywords: +patch
nosy: +krisys
Added file: http://bugs.python.org/file23642/issue13359.patch

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


More information about the Python-bugs-list mailing list