Curl and data pipelining

echo foo | curl <url> --data-urlencode parameter@-

Example

echo '{"foo":"bar"}' | \
curl http://www.jsonlint.com/ajax/validate --data-urlencode json@-
You are here quickies:curl