Created
March 11, 2020 07:23
-
-
Save mynameismaxz/2fb51e0b38d8e24e0c38112d1a2fb357 to your computer and use it in GitHub Desktop.
Example of requests to post with json format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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