Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
urllib2.py File Reference

Go to the source code of this file.

Data Structures

class  URLError
 
class  HTTPError
 
class  GopherError
 
class  Request
 
class  OpenerDirector
 
class  BaseHandler
 
class  HTTPDefaultErrorHandler
 
class  HTTPRedirectHandler
 
class  ProxyHandler
 
class  CustomProxy
 
class  CustomProxyHandler
 
class  HTTPPasswordMgr
 
class  HTTPPasswordMgrWithDefaultRealm
 
class  AbstractBasicAuthHandler
 
class  HTTPBasicAuthHandler
 
class  ProxyBasicAuthHandler
 
class  AbstractDigestAuthHandler
 
class  HTTPDigestAuthHandler
 
class  ProxyDigestAuthHandler
 
class  AbstractHTTPHandler
 
class  HTTPHandler
 
class  HTTPSHandler
 
class  UnknownHandler
 
class  FileHandler
 
class  FTPHandler
 
class  CacheFTPHandler
 fw.ftp.set_debuglevel(1) More...
 
class  GopherHandler
 
class  OpenerFactory
 

Namespaces

 urllib2
 

Constant Groups

 urllib2
 

Functions

def urlopen
 
def install_opener
 
def build_opener
 
def encode_digest
 
def parse_keqv_list
 
def parse_http_list
 

Variables

 sha = None
 
string __version__ = "2.0a1"
 
 _opener = None
 
string localhost = 'bitdiddle.cnri.reston.va.us'
 
list urls
 
tuple cfh = CacheFTPHandler()
 if localhost is not None: urls = urls + [ 'file://%s/etc/passwd' % localhost, 'http://%s/simple/' % localhost, 'http://%s/digest/' % localhost, 'http://%s/not/found.h' % localhost, ] More...
 
 req = None
 

XXX try out some custom proxy objects too!

def at_cnri(req): host = req.get_host() print host if host[-18:] == '.cnri.reston.va.us': return 1 p = CustomProxy('http', at_cnri, 'proxy.cnri.reston.va.us') ph = CustomProxyHandler(p) More...
 
tuple f = urlopen(url, req)
 
tuple buf = f.read()