Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import httplib, urllib
  2. url = "https://www.ivao.aero/vasystem/admin/addpilot.asp?Id=19769"
  3. params = urllib.urlencode({'Id' : '19769',
  4. 'Calls1' : '1024',
  5. 'Id1': '511589',
  6. 'Pilot1' : '0',
  7. 'Suspend1' : '0',
  8. 'Member1' : '1',
  9. 'Deleted1' : '0',
  10. 'Callsi1' : '0',
  11. 'Length1' : '0',
  12. 'Name1' : 'Dmitry Minayew',
  13. 'Airl_PreCall' : 'UTA'})
  14. headers = {"Content-type": "application/x-www-form-urlencoded",
  15. "Accept": "text/plain"}
  16. conn = httplib.HTTPConnection("http://www.ivao.aero/")
  17. conn.request("POST", "/vasystem/admin/addpilot.asp?Id=19769", params, headers)
  18. response = conn.getresponse()
  19. conn.close()
  20. print "Done"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement