<s> import requests <EOL> baseurl = '<STR_LIT:localhost>' <EOL> '''<STR_LIT>''' <EOL> posturl = '<STR_LIT>' % baseurl <EOL> files = { '<STR_LIT:file>' : open ( '<STR_LIT>' , '<STR_LIT:rb>' ) } <EOL> post = requests . post ( posturl , files = files ) <EOL> if post . status_code == <NUM_LIT:200> : <EOL> print "<STR_LIT>" <EOL> else : <EOL> print "<STR_LIT>" <EOL> '''<STR_LIT>''' <EOL> if requests . get ( posturl ) . status_code == <NUM_LIT> : <EOL> print "<STR_LIT>" <EOL> else : <EOL> print "<STR_LIT>" <EOL> '''<STR_LIT>''' <EOL> posturl = '<STR_LIT>' % baseurl <EOL> if requests . get ( posturl ) . status_code == <NUM_LIT> : <EOL> print "<STR_LIT>" <EOL> else : <EOL> print "<STR_LIT>" <EOL> '''<STR_LIT>''' <EOL> posturl = '<STR_LIT>' % baseurl <EOL> if requests . get ( posturl ) . status_code == <NUM_LIT:200> : <EOL> print "<STR_LIT>" <EOL> else : <EOL> print "<STR_LIT>" <EOL> '''<STR_LIT>''' <EOL> posturl = '<STR_LIT>' % baseurl <EOL> if requests . get ( posturl ) . status_code == <NUM_LIT:200> : <EOL> print "<STR_LIT>" <EOL> else : <EOL> print "<STR_LIT>" </s>
