Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import requests
  2.  
  3. session = requests.Session()
  4. session.post('https://localhost:8000/login', json={'username': 'saltdev', 'password': 'password', 'eauth': 'pam',}, verify=False)
  5.  
  6. 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