I use Ubuntu and installed cURL on it. I want to test my Spring REST application with cURL. I wrote my POST code at the Java side. However, I want to test it with cURL. I am
You could also put your JSON content in a file and pass it to curl using the --upload-file option via standard input, like this:
--upload-file
echo 'my.awesome.json.function({"do" : "whatever"})' | curl -X POST "http://url" -T -