Skip to content

Instantly share code, notes, and snippets.

@kybernetyk
Created December 20, 2010 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kybernetyk/749182 to your computer and use it in GitHub Desktop.
Save kybernetyk/749182 to your computer and use it in GitHub Desktop.
i like nodejs more!
#!/usr/bin/env python
import httplib, urllib
params = urllib.urlencode( {
'characterID': 260629291,
'userid': 435411,
'apikey': '70E6A6C6FF04D9BBC04E4A08E8082FE2E8BEDD84B6A4CD4A9AE1C72E0B22CD0',
} )
headers = { "Content-type": "application/x-www-form-urlencoded" }
conn = httplib.HTTPConnection("api.eve-online.com")
conn.request("POST", "/char/AccountBalance.xml.aspx", params, headers)
response = conn.getresponse()
print response.status, response.reason
data = response.read()
print data
conn.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment