Home | Trees | Index | Help |
|
---|
Module urllib :: Class FancyURLopener |
|
URLopener
--+
|
FancyURLopener
MyURLopener
,
URLerrorFinder
Method Summary | |
---|---|
__init__(self,
*args,
**kwargs)
| |
get_user_passwd(self,
host,
realm,
clear_cache)
| |
Error 301 -- also relocated (permanently). | |
Error 302 -- relocated (temporarily). | |
Error 303 -- also relocated (essentially identical to 302). | |
Error 307 -- relocated, but turn POST into error. | |
Error 401 -- authentication required. | |
Default error handling -- don't raise an exception. | |
Override this in a GUI environment! | |
redirect_internal(self,
url,
fp,
errcode,
errmsg,
headers,
data)
| |
retry_http_basic_auth(self,
url,
realm,
data)
| |
retry_https_basic_auth(self,
url,
realm,
data)
| |
Inherited from URLopener | |
| |
Add a header to be used by the HTTP interface only e.g. | |
| |
| |
Handle http errors. | |
Use URLopener().open(file) instead of open(file, 'r'). | |
Use "data" URL. | |
Use local file or FTP depending on form of URL. | |
Use FTP protocol. | |
Use Gopher protocol. | |
Use HTTP protocol. | |
Use HTTPS protocol. | |
Use local file. | |
Overridable interface to open unknown URL type. | |
Overridable interface to open unknown URL type. | |
retrieve(url) returns (filename, headers) for a local object or (tempfilename, headers) for a remote object. |
Class Variable Summary | |
---|---|
Inherited from URLopener | |
str |
version = 'Python-urllib/1.15'
|
Method Details |
---|
http_error_301(self, url, fp, errcode, errmsg, headers, data=None)Error 301 -- also relocated (permanently). |
http_error_302(self, url, fp, errcode, errmsg, headers, data=None)Error 302 -- relocated (temporarily). |
http_error_303(self, url, fp, errcode, errmsg, headers, data=None)Error 303 -- also relocated (essentially identical to 302). |
http_error_307(self, url, fp, errcode, errmsg, headers, data=None)Error 307 -- relocated, but turn POST into error. |
http_error_401(self, url, fp, errcode, errmsg, headers, data=None)Error 401 -- authentication required. See this URL for a description of the basic authentication scheme: http://www.ics.uci.edu/pub/ietf/http/draft-ietf-http-v10-spec-00.txt |
http_error_default(self, url, fp, errcode, errmsg, headers)Default error handling -- don't raise an exception.
|
prompt_user_passwd(self, host, realm)Override this in a GUI environment! |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Jul 03 17:07:34 2005 | http://epydoc.sf.net |