curl:post_to_a_page
Curl - Post to a page
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
curl/post_to_a_page.txt · Last modified: 2020/09/25 13:03 by 192.168.1.1