docs: note '--data-urlencode' option

Closes #10687
This commit is contained in:
andy5995 2023-03-06 01:00:38 -06:00 committed by Daniel Stenberg
parent e4d5685cb5
commit 7c3822fe45
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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.