Created
June 3, 2022 04:05
-
-
Save peacefixation/0e476e05f6c88579f012e47c746e1706 to your computer and use it in GitHub Desktop.
Curl POST request with JSON payload
This file contains hidden or 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
curl -X POST -H "Content-Type: application/json" -d @data.json http://localhost:8000/endpoint | |
curl -X POST -H "Content-Type: application/json" -d @ '{"key1": "value1", "key2": "value2"}' http://localhost:8000/endpoint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment