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.