[issue13642] urllib incorrectly quotes username and password in https basic auth

Joonas Kuorilehto report at bugs.python.org
Fri Jan 6 04:06:05 CET 2012


Joonas Kuorilehto <joneskoo at derbian.fi> added the comment:

Updated patch for 2.7 hg tip attached. Please review, test and if ok, port to 3.x.

I guess the URL needs to be quoted so commented out the assertion for the URL being equal. I added unquote in the base64 encoding of the password, which makes the test pass. Seems to work for me and no urllib tests were broken. Did not run others.

http://test.webdav.org/ has some basic auth test accounts configured if you want to try it out. You can use wireshark to grab the base64 from the unencrypted http. Fancy opener works for me with this now, too.

----------
Added file: http://bugs.python.org/file24148/tests-and-fakehttp-request-storing-2.diff

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


More information about the Python-bugs-list mailing list