Skip to content

Instantly share code, notes, and snippets.

@Gunio
Created October 18, 2011 05:14
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 Gunio/1294655 to your computer and use it in GitHub Desktop.
Save Gunio/1294655 to your computer and use it in GitHub Desktop.
POSTing using Python Requests
import requests
url = 'https://testexample.com/form'
data={'title': 'RoboCop', 'description': 'The best movie ever.'}
r = requests.post(url, data=data)
print r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment