ubuntu:curl:post_to_a_page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:curl:post_to_a_page [2019/11/27 00:11] – created peter | ubuntu:curl:post_to_a_page [2020/09/25 13:03] (current) – removed 192.168.1.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - Curl - Post to a page ====== | ||
- | |||
- | To process a POST request using CURL. | ||
- | |||
- | The data will use the **application/ | ||
- | |||
- | Lets say you have the following POST form in your page: | ||
- | |||
- | <code html> | ||
- | <form method=" | ||
- | <input type=text name=" | ||
- | <input type=text name=" | ||
- | <input type=submit name=" | ||
- | </ | ||
- | </ | ||
- | |||
- | You can use the following CURL command to POST the request. | ||
- | |||
- | <code bash> | ||
- | curl -d " | ||
- | </ | ||
ubuntu/curl/post_to_a_page.1574813467.txt.gz · Last modified: 2020/07/15 09:30 (external edit)