Skip to content

Instantly share code, notes, and snippets.

@Dnile
Created July 21, 2021 16:13
Show Gist options
  • Save Dnile/7468d23220305e1e78109888153c9bff to your computer and use it in GitHub Desktop.
Save Dnile/7468d23220305e1e78109888153c9bff to your computer and use it in GitHub Desktop.
#!/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