Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cvhttppostgeneratedbypostman
import http.client
conn = http.client.HTTPConnection("127,0,0,1")
headers = {
'Content-Type': "image/jpg",
'cache-control': "no-cache",
'Postman-Token': "847d04a8-0d05-4637-a056-7dbbdf10009b"
}
conn.request("POST", "image", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment