I'm trying to replicate this cURL onliner:
curl -i -XPOST 'http://httpbin.org/post?db=data' --data-binary 'files,host=server10,folder=max value=0.64 1434055562121200000' to python with the help of python-requests.
I've tried:
import requests payload = {'files,host=server10,folder=max value=0.64 1434055562121200000':'\n'} or payload = {'files,host':'server10,folder=max value=0.64 1434055562121200000'} or {'files,host=server10,folder=max value=0.64 1434055562121200000':''} or {'files,host=server10,folder=max value=0.64 1434055562121200000'} r = requests.post('http://httpbin.org/post?db=data', data=payload) I need some pointers or help to get past this snag, because it's possible right?