Skip to content

Instantly share code, notes, and snippets.

@mynameismaxz
Created March 11, 2020 07:23
Show Gist options
  • Save mynameismaxz/2fb51e0b38d8e24e0c38112d1a2fb357 to your computer and use it in GitHub Desktop.
Save mynameismaxz/2fb51e0b38d8e24e0c38112d1a2fb357 to your computer and use it in GitHub Desktop.
Example of requests to post with json format
import requests
r = requests.post('[URL]', json={"key": "value", "key2": "value2"})
r.status_code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment