]> granicus.if.org Git - python/commit
#7159: generalize urllib prior auth support.
authorR David Murray <rdmurray@bitdance.com>
Thu, 16 Apr 2015 20:36:18 +0000 (16:36 -0400)
committerR David Murray <rdmurray@bitdance.com>
Thu, 16 Apr 2015 20:36:18 +0000 (16:36 -0400)
commit4c7f995e805f4fddcf54b90f35ea30c7e26a4a95
tree870ddf9b8e0d8f65dddb5f990c58d69968979d66
parent6297fecbd1fc534176d65a6a27c01b4667a6b417
#7159: generalize urllib prior auth support.

This fix is a superset of the functionality introduced by the issue #19494
enhancement, and supersedes that fix.  Instead of a new handler, we have a new
password manager that tracks whether we should send the auth for a given uri.
This allows us to say "always send", satisfying #19494, or track that we've
succeeded in auth and send the creds right away on every *subsequent* request.
The support for using the password manager is added to AbstractBasicAuth,
which means the proxy handler also now can handle prior auth if passed
the new password manager.

Patch by Akshit Khurana, docs mostly by me.
Doc/library/urllib.request.rst
Doc/whatsnew/3.5.rst
Lib/test/test_urllib2.py
Lib/urllib/request.py
Misc/ACKS
Misc/NEWS