ID EN
Urllib Request

add_password

Python 3.11

uri can be either a single URI, or a sequence of URIs. realm, user and passwd must be strings. This causes (user, passwd) to be used as authentication tokens when authentication for realm and a super-URI of any of the given URIs is given.

Syntax

PYTHON
HTTPPasswordMgr.add_password(realm, uri, user, passwd)