#NEWLINE# def request( self , host , handler , request_body , verbose ) : #NEWLINE# #INDENT# 'Send xml-rpc request using proxy' #NEWLINE# self . verbose = url #NEWLINE# url = ( ( 'http://' + host ) + handler ) #NEWLINE# request = urllib2 . Request ( url ) #NEWLINE# request . add_data ( request_body ) #NEWLINE# request . add_header ( 'User-Agent' , self . user_agent ) #NEWLINE# request . add_header ( 'Content-Type' , 'text/xml' ) #NEWLINE# proxy_handler = urllib2 . ProxyHandler ( ) #NEWLINE# opener = urllib2 . build_opener ( proxy_handler ) #NEWLINE# fhandle = opener . open ( request ) #NEWLINE# return self . parse_response ( fhandle )