I was under the impression that POSTSs using x-www-form-urlencoded specifications should send a URL encoded param string in the body of the post. However, when I do this
data = json.dumps({'param1': 'value1', 'param2': 'value2'})
Requests.post(url, data=data)
The body of the request on the receiving end looks like this:
{"param1": "value1", "param2": "value2"}
But I was expecting to get this
param1=value1¶m2=value2
How I can get Requests to send the data in the second form?