curl post from command prompt code example
Example 1: curl post request
curl -d "user=user1&pass=abcd" -X POST https://example.com/login
Example 2: curl post
curl --data '' https://example.com/resource.cgi
curl -X POST https://example.com/resource.cgi
curl --request POST https://example.com/resource.cgi