curl post example with body
Example 1: how to send http post create request using curl command
$ curl -X POST -d @filename http://locahost:8080/weather
Example 2: curl post
curl --data "param1=value1¶m2=value2" https://example.com/post
Example 3: curl pass data in request
curl -d "param1=value1¶m2=value2" -X POST http://localhost:3000/data
Example 4: how to send http post create request using curl command
$ curl --data "param1=value1¶m2=value2" http://locahost:8080/weather