A curl script to perform a POST to an HTTP web service using JSON data

As a quick note, I recently learned that you can use the following curl script to post JSON data to a web service:

curl \
    --header "Content-type: application/json" \
    --request POST \
    --data '{"symbol":"GOOG","price":"600.00"}' \
    http://localhost:8080/stocks/saveJsonStock

If you're familiar with the curl command and JSON web services, this should make sense.

Here are links to other curl shell scripts I've written:

For more information, see the (very long) curl man page.