Derived class with handlers for errors we can handle (perhaps).
|
|
|
http_error_default(self,
url,
fp,
errcode,
errmsg,
headers)
Default error handling -- don't raise an exception. |
|
|
|
http_error_302(self,
url,
fp,
errcode,
errmsg,
headers,
data=None)
Error 302 -- relocated (temporarily). |
|
|
|
redirect_internal(self,
url,
fp,
errcode,
errmsg,
headers,
data) |
|
|
|
http_error_301(self,
url,
fp,
errcode,
errmsg,
headers,
data=None)
Error 301 -- also relocated (permanently). |
|
|
|
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. |
|
|
|
http_error_407(self,
url,
fp,
errcode,
errmsg,
headers,
data=None)
Error 407 -- proxy authentication required. |
|
|
|
retry_proxy_http_basic_auth(self,
url,
realm,
data=None) |
|
|
|
retry_proxy_https_basic_auth(self,
url,
realm,
data=None) |
|
|
|
retry_http_basic_auth(self,
url,
realm,
data=None) |
|
|
|
retry_https_basic_auth(self,
url,
realm,
data=None) |
|
|
|
get_user_passwd(self,
host,
realm,
clear_cache=0) |
|
|
|
prompt_user_passwd(self,
host,
realm)
Override this in a GUI environment! |
|
|
Inherited from URLopener :
__del__ ,
addheader ,
cleanup ,
close ,
http_error ,
open ,
open_data ,
open_file ,
open_ftp ,
open_gopher ,
open_http ,
open_https ,
open_local_file ,
open_unknown ,
open_unknown_proxy ,
retrieve
|