Post request with a json using curl on command line

This is an example of a POST request with a json to an api endpoint using curl from the command line window.


curl -H "Content-Type: application/json" -X POST -d '{"id":"123","name":"james"}' http://example.com/api/samples


Search within Codexpedia

Custom Search

Search the entire web

Custom Search