Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to send file in python request

files = {'upload_file': open('file.txt','rb')}
values = {'DB': 'photcat', 'OUT': 'csv', 'SHORT': 'short'}

r = requests.post(url, files=files, data=values)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #send #file #python #request
ADD COMMENT
Topic
Name
5+2 =