urllib.request.HTTPPasswordMgr.add_password()

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

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.

doc_python
2016-10-07 17:46:55
Comments
Leave a Comment

Please login to continue.