Package bitten :: Package util :: Module compat :: Class HTTPBasicAuthHandler

Class HTTPBasicAuthHandler

urllib2.AbstractBasicAuthHandler --+    
                                   |    
             urllib2.BaseHandler --+    
                                   |    
        urllib2.HTTPBasicAuthHandler --+
                                       |
                                      HTTPBasicAuthHandler

Patched version of Python 2.6's HTTPBasicAuthHandler.

The fix for [1] introduced an infinite recursion bug [2] into Python 2.6.x that is triggered by attempting to connect using Basic authentication with a bad username and/or password. This class fixes the problem using the simple solution outlined in [3].

[1]http://bugs.python.org/issue3819
[2]http://bugs.python.org/issue8797
[3]http://bugs.python.org/issue8797#msg126657
Instance Methods
 
retry_http_basic_auth(self, host, req, realm)

Inherited from urllib2.HTTPBasicAuthHandler: http_error_401

Inherited from urllib2.AbstractBasicAuthHandler: __init__, http_error_auth_reqed

Inherited from urllib2.BaseHandler: __lt__, add_parent, close

Class Variables

Inherited from urllib2.HTTPBasicAuthHandler: auth_header

Inherited from urllib2.AbstractBasicAuthHandler: rx

Inherited from urllib2.BaseHandler: handler_order

Method Details

retry_http_basic_auth(self, host, req, realm)

 
Overrides: urllib2.AbstractBasicAuthHandler.retry_http_basic_auth