Check out example codes for "how to send http post create request using curl command". It will help you in understanding the concepts better.

Code Example 1

$ curl --data "param1=value1¶m2=value2" http://locahost:8080/weather

Code Example 2

curl --data "param1=value1" --data "param2=value2" https://example.com/resource.cgi

Code Example 3

$ curl --form "[email protected]" http://locahost:8080/weather

Code Example 4

$ curl -X POST -d @filename http://locahost:8080/weather

Learn ReactJs, React Native from akashmittal.com