Advertisement
Guest User

Untitled

a guest
Mar 14th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!python
  2. #-*-coding:utf-8-*-
  3. import requests
  4.  
  5. def main():
  6. with requests.Session() as s:
  7. url = ''
  8. res = s.post(url, data = dict(
  9. pma_username = '',
  10. pma_password = ''
  11. ))
  12.  
  13. if res.status_code == 200:
  14. print('login success!')
  15. else:
  16. print('login failed...')
  17.  
  18. if __name__ == '__main__':
  19. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement