Created
November 28, 2019 06:56
-
-
Save phuctu1901/3cbd1756a7b7395f0ba1b93e77303548 to your computer and use it in GitHub Desktop.
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 requests | |
url = "https://gentle-fjord-76321.herokuapp.com/verifyDegree" | |
payload = "{\n\t\"serial_number\":\"serialnumber\",\n\t\"university_code\":\"mta\",\n\t\"hash\":\"hash\"\n}" | |
headers = { | |
'Content-Type': "application/json", | |
'User-Agent': "PostmanRuntime/7.19.0", | |
'Accept': "*/*", | |
'Cache-Control': "no-cache", | |
'Postman-Token': "2b0657fe-9900-4a52-b77b-ec95340fcd24,ef5b7803-69f2-4b5d-81ab-d21e2f8f3f57", | |
'Host': "gentle-fjord-76321.herokuapp.com", | |
'Accept-Encoding': "gzip, deflate", | |
'Content-Length': "77", | |
'Connection': "keep-alive", | |
'cache-control': "no-cache" | |
} | |
response = requests.request("POST", url, data=payload, headers=headers) | |
print(response.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment