#NEWLINE# def request( self , method , url , bodyData , headers ) : #NEWLINE# #INDENT# 'Low-level networking. All HTTP-method methods call this' #NEWLINE# headers = self . _fix_headers ( headers ) #NEWLINE# url = self . prop . constructUrl ( url ) #NEWLINE# if ( bodyData is None ) : #NEWLINE# #INDENT# if ( 'content-type' in headers ) : #NEWLINE# #INDENT# del headers [ 'content-type' ] #NEWLINE# #UNINDENT# #UNINDENT# requestBody = RequestBody ( bodyData , headers ) #NEWLINE# conn = self . get_connection ( ) #NEWLINE# conn . request ( method , url , requestBody . process ( ) , headers ) #NEWLINE# response = conn . getresponse ( ) #NEWLINE# status = response . status #NEWLINE# content = ResponseBody ( response ) #NEWLINE# self . headers = response . getheaders ( ) #NEWLINE# conn . close ( ) #NEWLINE# return ( status , content . processBody ( ) )