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
I am using the below format to test with a web server.
use -F 'json data'
Let's assume this JSON dict format:
{ 'comment': { 'who':'some_one', 'desc' : 'get it' } }
curl -XPOST your_address/api -F comment='{"who":"some_one", "desc":"get it"}'