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
This worked for me:
curl -H "Content-Type: application/json" -X POST -d @./my_json_body.txt http://192.168.1.1/json