xxxxxxxxxx
$ curl --form "fileupload=@filename.txt" http://locahost:8080/weather
xxxxxxxxxx
curl -X POST -H "Content-Type: application/json" -d '{"key": "value"}' URL
xxxxxxxxxx
RUN IN WARP
curl -H 'Content-Type: application/json' \
-d '{ "title":"foo","body":"bar", "id": 1}' \
-X POST \
https://example.com/posts
xxxxxxxxxx
$ curl --data "param1=value1¶m2=value2" http://locahost:8080/weather
xxxxxxxxxx
$ curl -X POST -d @filename http://locahost:8080/weather
xxxxxxxxxx
curl --data "param1=value1" --data "param2=value2" https://example.com/resource.cgi