#NEWLINE# def get_response( self ) : #NEWLINE# #INDENT# if ( self . content_length < 0 ) : #NEWLINE# #INDENT# self . content_length = 0 #NEWLINE# #UNINDENT# if ( self . method in ( 'DELETE' , 'GET' ) ) : #NEWLINE# #INDENT# self . body = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . method == 'POST' ) and self . POST ) : #NEWLINE# #INDENT# body = urllib . urlencode ( self . POST . copy ( ) ) #NEWLINE# stream = StringIO ( body ) #NEWLINE# stream . seek ( 0 ) #NEWLINE# self . body_file = stream #NEWLINE# self . content_length = stream . len #NEWLINE# if ( 'form' not in self . content_type ) : #NEWLINE# #INDENT# self . content_type = 'application/x-www-form-urlencoded' #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . server_name = self . host #NEWLINE# return BaseRequest . get_response ( self , PROXY )