summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.5.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-04-16 20:36:18 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-04-16 20:36:18 (GMT)
commit4c7f995e805f4fddcf54b90f35ea30c7e26a4a95 (patch)
tree870ddf9b8e0d8f65dddb5f990c58d69968979d66 /Doc/whatsnew/3.5.rst
parent6297fecbd1fc534176d65a6a27c01b4667a6b417 (diff)
downloadcpython-4c7f995e805f4fddcf54b90f35ea30c7e26a4a95.zip
cpython-4c7f995e805f4fddcf54b90f35ea30c7e26a4a95.tar.gz
cpython-4c7f995e805f4fddcf54b90f35ea30c7e26a4a95.tar.bz2
#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.
Diffstat (limited to 'Doc/whatsnew/3.5.rst')
-rw-r--r--Doc/whatsnew/3.5.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 44fc8cf..65119ed 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -520,11 +520,13 @@ time
urllib
------
-* A new :class:`urllib.request.HTTPBasicPriorAuthHandler` allows HTTP Basic
- Authentication credentials to be sent unconditionally with the first HTTP
- request, rather than waiting for a HTTP 401 Unauthorized response from the
- server.
- (Contributed by Matej Cepl in :issue:`19494`.)
+* A new :class:`~urllib.request.HTTPPasswordMgrWithPriorAuth` allows HTTP Basic
+ Authentication credentials to be managed so as to eliminate unnecessary
+ ``401`` response handling, or to unconditionally send credentials
+ on the first request in order to communicate with servers that return a
+ ``404`` response instead of a ``401`` if the ``Authorization`` header is not
+ sent. (Contributed by Matej Cepl in :issue:`19494` and Akshit Khurana in
+ :issue:`7159`.)
wsgiref
-------