diff options
author | Georg Brandl <georg@python.org> | 2006-04-30 07:06:11 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-04-30 07:06:11 (GMT) |
commit | fa42bd7af429a909e3e964ffc8dcfa457e007ac8 (patch) | |
tree | b6ae48d30b6458f727e52788f465ed3c05e5e1d0 /Doc | |
parent | 5085fe2bcc1093eb4c0845a92c8e870421bd7f4e (diff) | |
download | cpython-fa42bd7af429a909e3e964ffc8dcfa457e007ac8.zip cpython-fa42bd7af429a909e3e964ffc8dcfa457e007ac8.tar.gz cpython-fa42bd7af429a909e3e964ffc8dcfa457e007ac8.tar.bz2 |
Patch #1470846: fix urllib2 ProxyBasicAuthHandler.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/liburllib2.tex | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Doc/lib/liburllib2.tex b/Doc/lib/liburllib2.tex index e0c4568..7c8ad5d 100644 --- a/Doc/lib/liburllib2.tex +++ b/Doc/lib/liburllib2.tex @@ -621,14 +621,20 @@ user/password. \subsection{AbstractBasicAuthHandler Objects \label{abstract-basic-auth-handler}} -\begin{methoddesc}[AbstractBasicAuthHandler]{handle_authentication_request} +\begin{methoddesc}[AbstractBasicAuthHandler]{http_error_auth_reqed} {authreq, host, req, headers} Handle an authentication request by getting a user/password pair, and re-trying the request. \var{authreq} should be the name of the header where the information about the realm is included in the request, -\var{host} is the host to authenticate to, \var{req} should be the -(failed) \class{Request} object, and \var{headers} should be the error -headers. +\var{host} specifies the URL and path to authenticate for, \var{req} +should be the (failed) \class{Request} object, and \var{headers} +should be the error headers. + +\var{host} is either an authority (e.g. \code{"python.org"}) or a URL +containing an authority component (e.g. \code{"http://python.org/"}). +In either case, the authority must not contain a userinfo component +(so, \code{"python.org"} and \code{"python.org:80"} are fine, +\code{"joe:password@python.org"} is not). \end{methoddesc} @@ -653,7 +659,7 @@ Retry the request with authentication information, if available. \subsection{AbstractDigestAuthHandler Objects \label{abstract-digest-auth-handler}} -\begin{methoddesc}[AbstractDigestAuthHandler]{handle_authentication_request} +\begin{methoddesc}[AbstractDigestAuthHandler]{http_error_auth_reqed} {authreq, host, req, headers} \var{authreq} should be the name of the header where the information about the realm is included in the request, \var{host} should be the host to |