Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import httplib, urllib
- url = "https://www.ivao.aero/vasystem/admin/addpilot.asp?Id=19769"
- params = urllib.urlencode({'Id' : '19769',
- 'Calls1' : '1024',
- 'Id1': '511589',
- 'Pilot1' : '0',
- 'Suspend1' : '0',
- 'Member1' : '1',
- 'Deleted1' : '0',
- 'Callsi1' : '0',
- 'Length1' : '0',
- 'Name1' : 'Dmitry Minayew',
- 'Airl_PreCall' : 'UTA'})
- headers = {"Content-type": "application/x-www-form-urlencoded",
- "Accept": "text/plain"}
- conn = httplib.HTTPConnection("http://www.ivao.aero/")
- conn.request("POST", "/vasystem/admin/addpilot.asp?Id=19769", params, headers)
- response = conn.getresponse()
- conn.close()
- print "Done"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement