mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 23:28:33 -04:00
13 lines
233 B
Python
Executable File
13 lines
233 B
Python
Executable File
import http.client
|
|
|
|
conn = http.client.HTTPConnection("mockbin.com")
|
|
|
|
headers = { 'cookie': "foo=bar; bar=baz" }
|
|
|
|
conn.request("POST", "/har", headers=headers)
|
|
|
|
res = conn.getresponse()
|
|
data = res.read()
|
|
|
|
print(data.decode("utf-8"))
|