Skip to content

Instantly share code, notes, and snippets.

@timotheus
Created June 20, 2013 20:54
Show Gist options
  • Save timotheus/5826542 to your computer and use it in GitHub Desktop.
Save timotheus/5826542 to your computer and use it in GitHub Desktop.
import requests
# http://docs.python-requests.org/en/latest/
headers = {'content-type': 'application/json'}
url = 'http://apps.testrunner.aeon-rc.dev.ebay.com/api/testrunner_v1/log/'
payload = {'a': 'b'}
r = requests.post(url,
data=json.dumps(payload),
headers=headers)
print r.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment