Created
July 6, 2017 10:42
-
-
Save butterybread/2b73d7d8cf8046aedda1888b49420d20 to your computer and use it in GitHub Desktop.
cURL POST JSON data
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 -d '{"username":"xyz","password":"xyz"}' \ | |
http://example.com/path/to/resource \ | |
--header "Content-Type:application/json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment