Guest User

Untitled

a guest
Dec 5th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. cred_values = {'username': 'myuser', 'password': 'mypwd'}
  2.  
  3. username = cred_values['username']
  4.  
  5. password = cred_values['password']
  6.  
  7. login_data = {'username': username,'password': password}
  8.  
  9. login_response = requests.post(login_request_url, headers=login_headers, data=login_data)
  10.  
  11. login_data = {'username': '' + username + '','password': '' + password + ''}
  12.  
  13. login_data = {'username': '' + str(username) + '','password': '' + str(password) + ''}
  14.  
  15. login_response = requests.post(login_request_url, headers=login_headers, data=json.dumps(login_data))
Add Comment
Please, Sign In to add comment