ubuntu:curl:post_to_a_page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ubuntu:curl:post_to_a_page [2020/07/15 09:30] – external edit 127.0.0.1 | 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.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1