๐Ÿ“ฆ Kong / httpsnippet

๐Ÿ“„ application-form-encoded.py ยท 11 lines
1
2
3
4
5
6
7
8
9
10
11import requests

url = "http://mockbin.com/har"

payload = "foo=bar&hello=world"
headers = {"content-type": "application/x-www-form-urlencoded"}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)