David Fischer <djfis...@gmail.com> added the comment:

With this patch, the AbstractBasicAuthHandler (and its subclasses) performs a 
regex search on the amalgamated "www-authenticate" header for basic 
authentication. 

This fixes the case where you have an HTTP response of the form:

HTTP/1.1 401 Authorization Required
Server: HTTPd/1.0
WWW-Authenticate: Basic realm="Secure Area"
WWW-Authenticate: SomethingElse realm="Alternative"
...

In the above case, AbstractBasicAuthHandler will attempt basic auth against the 
"Secure Area" realm.

----------
keywords: +patch
Added file: http://bugs.python.org/file23619/urllib2_basicauth.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to