Last active
December 19, 2015 08:49
-
-
Save herry13/5928811 to your computer and use it in GitHub Desktop.
cURL example commands
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
| # send data which is kept in a file through HTTP Post method | |
| curl -i -X POST -F "json=@data.json" localhost:8080/save | |
| # send data through HTTP Post method | |
| curl -i -X POST -d json='{"key":"value"}' localhost:8080/save | |
| # send binary file through HTTP Post method | |
| curl -i -X POST -F data=@filepath localhost:8080/save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment