ID EN
Urllib Request

AbstractBasicAuthHandler

Python 3.11

This is a mixin class that helps with HTTP authentication, both to the remote host and to a proxy. password_mgr, if given, should be something that is compatible with HTTPPasswordMgr; refer to section HTTPPasswordMgr Objects for information on the interface that must be supported. If passwd_mgr also provides is_authenticated and update_authenticated methods (see HTTPPasswordMgrWithPriorAuth Objects), then the handler will use the is_authenticated result for a given URI to determine whether or not to send authentication credentials with the request. If is_authenticated returns True for the URI,

Syntax

PYTHON
class urllib.request.AbstractBasicAuthHandler(password_mgr=None)

See Also

HTTPPasswordMgr HTTPPasswordMgr Objects HTTPPasswordMgrWithPriorAuth Objects