Skip to content

Instantly share code, notes, and snippets.

@Everfighting
Created June 17, 2019 06:53
Show Gist options
  • Save Everfighting/64d6f1b53b7421a405a5ffcad218666a to your computer and use it in GitHub Desktop.
Save Everfighting/64d6f1b53b7421a405a5ffcad218666a to your computer and use it in GitHub Desktop.
import requests
url = "http://192.168.1.22:18888/loginByAuth"
querystring = {"username":"YLCS001","password":"92ba8aba25647d2812bba427ce5e2d17"}
payload = ""
headers = {
'cache-control': "no-cache",
'Postman-Token': "ef77fde8-e52d-49b7-b315-ec67a45ec2db"
}
response = requests.request("POST", url, data=payload, headers=headers, params=querystring)
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment