Example usage of curl
curl is convenient for testing web services. Note: You may also be interested in: HTTPie - a command line HTTP client Examples: curl -i --data @sample-input.xml \ --header Content-type:application/xml \ https://goyun.info curl -i --data @sample-input.json \ --header Content-type:application/json \ https://goyun.info curl -i -X GET https://goyun.info curl -i --header Accept:application/json -X GET https://goyun.info curl -v -H "Content-Type: application/json" -X POST -d '{"user":{"firstName":"Foo","lastName":"Bar","emailAddress":"<your email address here>"}, "password":"password"}' https://goyun.info /rest/user Common parameters are: -i, --include (HTTP) Include the HTTP-header in the output. The HTTP-header includes things like server-name, date of the document, HTTP- ...