urllib.request.FTPHandler

class urllib.request.FTPHandler Open FTP URLs.

urllib.request.FileHandler.file_open()

FileHandler.file_open(req) Open the file locally, if there is no host name, or the host name is 'localhost'. Changed in version 3.2: This method is applicable only for local hostnames. When a remote hostname is given, an URLError is raised.

urllib.request.FileHandler

class urllib.request.FileHandler Open local files.

urllib.request.FancyURLopener.prompt_user_passwd()

prompt_user_passwd(host, realm) Return information needed to authenticate the user at the given host in the specified security realm. The return value should be a tuple, (user, password), which can be used for basic authentication. The implementation prompts for this information on the terminal; an application should override this method to use an appropriate interaction model in the local environment.

urllib.request.FancyURLopener

class urllib.request.FancyURLopener(...) Deprecated since version 3.3. FancyURLopener subclasses URLopener providing default handling for the following HTTP response codes: 301, 302, 303, 307 and 401. For the 30x response codes listed above, the Location header is used to fetch the actual URL. For 401 response codes (authentication required), basic HTTP authentication is performed. For the 30x response codes, recursion is bounded by the value of the maxtries attribute, which defaults to 10

urllib.request.DataHandler.data_open()

DataHandler.data_open(req) Read a data URL. This kind of URL contains the content encoded in the URL itself. The data URL syntax is specified in RFC 2397. This implementation ignores white spaces in base64 encoded data URLs so the URL may be wrapped in whatever source file it comes from. But even though some browsers don’t mind about a missing padding at the end of a base64 encoded data URL, this implementation will raise an ValueError in that case.

urllib.request.DataHandler

class urllib.request.DataHandler Open data URLs. New in version 3.4.

urllib.request.CacheFTPHandler.setTimeout()

CacheFTPHandler.setTimeout(t) Set timeout of connections to t seconds.

urllib.request.CacheFTPHandler.setMaxConns()

CacheFTPHandler.setMaxConns(m) Set maximum number of cached connections to m.

urllib.request.CacheFTPHandler

class urllib.request.CacheFTPHandler Open FTP URLs, keeping a cache of open FTP connections to minimize delays.