urllib.request.HTTPSHandler

class urllib.request.HTTPSHandler(debuglevel=0, context=None, check_hostname=None) A class to handle opening of HTTPS URLs. context and check_hostname have the same meaning as in http.client.HTTPSConnection. Changed in version 3.2: context and check_hostname were added.

urllib.request.install_opener()

urllib.request.install_opener(opener) Install an OpenerDirector instance as the default global opener. Installing an opener is only necessary if you want urlopen to use that opener; otherwise, simply call OpenerDirector.open() instead of urlopen(). The code does not check for a real OpenerDirector, and any class with the appropriate interface will work.

urllib.request.HTTPSHandler.https_open()

HTTPSHandler.https_open(req) Send an HTTPS request, which can be either GET or POST, depending on req.has_data().

urllib.request.HTTPRedirectHandler.redirect_request()

HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs, newurl) Return a Request or None in response to a redirect. This is called by the default implementations of the http_error_30*() methods when a redirection is received from the server. If a redirection should take place, return a new Request to allow http_error_30*() to perform the redirect to newurl. Otherwise, raise HTTPError if no other handler should try to handle this URL, or return None if you can’t but another handler mig

urllib.request.HTTPRedirectHandler.http_error_303()

HTTPRedirectHandler.http_error_303(req, fp, code, msg, hdrs) The same as http_error_301(), but called for the ‘see other’ response.

urllib.request.HTTPRedirectHandler.http_error_301()

HTTPRedirectHandler.http_error_301(req, fp, code, msg, hdrs) Redirect to the Location: or URI: URL. This method is called by the parent OpenerDirector when getting an HTTP ‘moved permanently’ response.

urllib.request.HTTPRedirectHandler

class urllib.request.HTTPRedirectHandler A class to handle redirections.

urllib.request.HTTPPasswordMgrWithPriorAuth.update_authenticated()

HTTPPasswordMgrWithPriorAuth.update_authenticated(self, uri, is_authenticated=False) Update the is_authenticated flag for the given uri or list of URIs.

urllib.request.HTTPRedirectHandler.http_error_302()

HTTPRedirectHandler.http_error_302(req, fp, code, msg, hdrs) The same as http_error_301(), but called for the ‘found’ response.

urllib.request.HTTPPasswordMgrWithPriorAuth

class urllib.request.HTTPPasswordMgrWithPriorAuth A variant of HTTPPasswordMgrWithDefaultRealm that also has a database of uri -> is_authenticated mappings. Can be used by a BasicAuth handler to determine when to send authentication credentials immediately instead of waiting for a 401 response first. New in version 3.5.