#NEWLINE# def post( self , path , data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , content_type = MULTIPART_CONTENT , **extra ) : #NEWLINE# #INDENT# 'Construct a POST request.' #NEWLINE# post_data = self . _encode_data ( data , post_data ) #NEWLINE# parsed = urlparse ( path ) #NEWLINE# r = { #NEWLINE# #INDENT# 'CONTENT_LENGTH' : len ( post_data ) , #NEWLINE# 'CONTENT_TYPE' : content_type , #NEWLINE# 'PATH_INFO' : self . _get_path ( parsed ) , #NEWLINE# 'QUERY_STRING' : force_str ( parsed [ 4 ] ) , #NEWLINE# 'REQUEST_METHOD' : str ( 'POST' ) , #NEWLINE# 'wsgi.input' : FakePayload ( post_data ) , #NEWLINE# #UNINDENT# } #NEWLINE# r . update ( extra ) #NEWLINE# return self . request ( ** r )