Guest User

Untitled

a guest
Jan 17th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import requests
  2.  
  3. # Fill in your details here to be posted to the login form.
  4. payload = {
  5. 'inUserName': 'username',
  6. 'inUserPass': 'password'
  7. }
  8.  
  9. # Use 'with' to ensure the session context is closed after use.
  10. with requests.Session() as s:
  11. p = s.post(LOGIN_URL, data=payload)
Add Comment
Please, Sign In to add comment