PyDocs

Nav

Internet Protocols and Support

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. If a URI includes a scheme, its credentials only match authentication URIs with the same scheme or no scheme. A URI without a scheme matches authentication URIs with any scheme.
Changed in 3.15
  • 3.15: Authentication credentials for URIs with a scheme are now scoped by that scheme.
0 Examples
No examples for urllib.request/HTTPPasswordMgr.add_password.
See Also
No see-alsos for urllib.request/HTTPPasswordMgr.add_password
0 Notes
No notes for HTTPPasswordMgr.add_password