Skip to content

Instantly share code, notes, and snippets.

@go4Mor4
Last active August 12, 2020 03:03
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 go4Mor4/21cd8b308fff268919229faaf5f3648f to your computer and use it in GitHub Desktop.
Save go4Mor4/21cd8b308fff268919229faaf5f3648f to your computer and use it in GitHub Desktop.
# This is how you use requests:
import requests
userdata = {"firstname": "Homer", "lastname": "Simpson", "password": "beer123"}
resp = requests.post('http://www.springfield.com/user', data=userdata)
resp.json()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment