Reputation: 47
I'm trying convert the following curl command to python code using requests module.
curl -v -X PUT -T video_file.mp4 https://my-app-domain.com
Already tried some ways like below but still not working.
with open(mp4_file_path, 'rb') as finput:
response = requests.put('https://my-app-domain.com', data=finput)
Can someone please show me how to write it? Thank you in advance.
Upvotes: 1
Views: 1374