To process a POST request using CURL.
The data will use the application/x-www-form-urlencoded encoding.
Lets say you have the following POST form in your page:
<form method="POST" action="process.php"> <input type=text name="item"> <input type=text name="category"> <input type=submit name="submit" value="ok"> </form>
You can use the following CURL command to POST the request.
curl -d "item=bottle&category=consumer&submit=ok" www.example.com/process.php