User Tools

Site Tools


curl:post_to_a_page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
curl:post_to_a_page [2016/07/02 00:01] – created petercurl:post_to_a_page [2020/09/25 13:03] (current) – created 192.168.1.1
Line 7: Line 7:
 Lets say you have the following POST form in your page: Lets say you have the following POST form in your page:
  
-<code>+<code html>
 <form method="POST" action="process.php"> <form method="POST" action="process.php">
           <input type=text name="item">           <input type=text name="item">
Line 17: Line 17:
 You can use the following CURL command to POST the request. You can use the following CURL command to POST the request.
  
-<code>+<code bash>
 curl -d "item=bottle&category=consumer&submit=ok" www.example.com/process.php curl -d "item=bottle&category=consumer&submit=ok" www.example.com/process.php
 </code> </code>
  
curl/post_to_a_page.1467417677.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki