Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- session = requests.Session()
- session.post('https://localhost:8000/login', json={'username': 'saltdev', 'password': 'password', 'eauth': 'pam',}, verify=False)
- resp = session.post('https://localhost:8000/login', json=[{ 'client': 'local', 'tgt': '*', 'fun': 'test.ping'}], verify=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement