Created
February 11, 2019 03:07
-
-
Save elbruno/b73aff17db2220201a7d3588309c4812 to your computer and use it in GitHub Desktop.
cvhttppostgeneratedbypostman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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