Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests as re
- from requests.auth import HTTPBasicAuth
- res = re.post('http://test01.test.smartmerch.it:5040/upload/classifier', auth=HTTPBasicAuth('smartmerch', 'smartmerch'), files={'upload_file': open('/home/zuenko/get-pip.py')})
- print(res.content)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement