POST a JSON Object Using cURL

curl -H "Content-Type: application/json" -X POST -d '{"message":"xyz"}' http://localhost:3000/some/endpoint

That JSON object will get really annoying for longer data.

comments powered by Disqus