~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2004.1.2.

Implements a BasicAuthManager.

* bzrlib/transport/http/_urllib2_wrappers.py:
(Response.begin): Calls httplib.HTTPResponse.begin directly. 401
have a response body too.
(AbstractHTTPConnection.getresponse): Calls
httplib.HTTPConnection.getresponse directly.
(Request.__init__): Acquire user and password from url.
(Request.extract_auth): New method.
(Response.begin, Opener.__init__): Use an
urllib2.HTTPBasicAuthHandler.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib.ask_password): New method.
(HttpTransport_urllib.__init__): Propagate user and pasword.
(HttpTransport_urllib._perform): Acquire/propagate user and password.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: