mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
parent
e4d5685cb5
commit
7c3822fe45
@ -298,6 +298,10 @@ Post a simple `name` and `phone` guestbook.
|
||||
|
||||
curl -d "name=Rafael%20Sagula&phone=3320780" http://www.where.com/guest.cgi
|
||||
|
||||
Or automatically [URL encode the data](https://everything.curl.dev/http/post/url-encode).
|
||||
|
||||
curl --data-urlencode "name=Rafael Sagula&phone=3320780" http://www.where.com/guest.cgi
|
||||
|
||||
How to post a form with curl, lesson #1:
|
||||
|
||||
Dig out all the `<input>` tags in the form that you want to fill in.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user