cpython/Lib/urllib
Nick Coghlan c216c48699 Close #19494: add urrlib.request.HTTPBasicPriorAuthHandler
This auth handler adds the Authorization header to the first
HTTP request rather than waiting for a HTTP 401 Unauthorized
response from the server as the default HTTPBasicAuthHandler
does.

This allows working with websites like https://api.github.com which do
not follow the strict interpretation of RFC, but more the dicta in the
end of section 2 of RFC 2617:

    > A client MAY preemptively send the corresponding Authorization
    > header with requests for resources in that space without receipt
    > of another challenge from the server.  Similarly, when a client
    > sends a request to a proxy, it may reuse a userid and password in
    > the Proxy-Authorization header field without receiving another
    > challenge from the proxy server. See section 4 for security
    > considerations associated with Basic authentication.

Patch by Matej Cepl.
2014-11-12 23:33:50 +10:00
..
__init__.py
error.py Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
parse.py Issue #22278: Fix urljoin problem with relative urls, a regression observed 2014-09-22 15:49:16 +08:00
request.py Close #19494: add urrlib.request.HTTPBasicPriorAuthHandler 2014-11-12 23:33:50 +10:00
response.py urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser) 2014-04-20 09:41:29 -07:00
robotparser.py Issue 21469: Minor code modernization (convert and/or expression to an if/else expression). 2014-05-12 22:22:46 -07:00