• Nick Coghlan's avatar
    Close #19494: add urrlib.request.HTTPBasicPriorAuthHandler · c216c486
    Nick Coghlan yazdı
    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.
    c216c486
Adı
Son kayıt (commit)
Son güncelleme
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.hgtouch Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...