I’d like to know the equivalent of this curl command in pycurl:
curl --data-binary @binary_data_file.bin 'http://server/myapp/method'
Note: The above curl statement uses the POST method. I need to use this for compatibility with my server script.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
requestslibrary is meant to keep things like this simple:Or depending on how the receiving end expects data: