Skip to content

Instantly share code, notes, and snippets.

@elbruno
Created February 11, 2019 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbruno/b73aff17db2220201a7d3588309c4812 to your computer and use it in GitHub Desktop.
Save elbruno/b73aff17db2220201a7d3588309c4812 to your computer and use it in GitHub Desktop.
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