network
curl
POST json data:1curl -H "Content-Type: application/json" -d '{"username":"xyz","password":"xyz"}' http://foo.com/api/login
Post a file:1curl -D - -F key1=value1 -F uploadedFile=@E:\abc.txt http://foo.com/post
For windows, single quotes around json did not work and I ended up escaping double quotes:1curl -X POST -H "Content-Type: application/json" -d "{ \"key1\": \"value1\" }" http://foo.com/api/method