Created
July 21, 2021 16:13
-
-
Save Dnile/7468d23220305e1e78109888153c9bff 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
#!/usr/bin/env python | |
import requests | |
url = "https://testngo-be-rz.femi.com/login" | |
headers = {'accept': 'application/json, text/plain, */*', | |
'accept-language': 'en-US,en;q=0.9,he;q=0.8', | |
'authorization': 'Bearer', | |
'content-type': 'application/json; charset=UTF-8', | |
'sec-ch-ua': '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"', | |
'sec-ch-ua-mobile': '?0', | |
'sec-fetch-dest': 'empty', | |
'sec-fetch-mode': 'cors', | |
'sec-fetch-site': 'same-site'} | |
body = '{"phoneNumber":"","passportNumber":"<PASSPORT_NUMBER>","email":"<EMAIL>"}' | |
options = {'referrer': 'https://testngoresults.femi.com/', | |
'referrerPolicy': 'strict-origin-when-cross-origin'} | |
res = requests.post(url=url, data=body, headers=headers) | |
if res.status_code != 200: | |
print("nor esults yet :(") | |
print(res.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment