From: andy5995 Date: Mon, 6 Mar 2023 07:00:38 +0000 (-0600) Subject: docs: note '--data-urlencode' option X-Git-Tag: curl-8_0_0~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c3822fe45058e89f408b7f3b06d4f77ef74f209;p=thirdparty%2Fcurl.git docs: note '--data-urlencode' option Closes #10687 --- diff --git a/docs/MANUAL.md b/docs/MANUAL.md index 44f6f5501d..aacf1768dc 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -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 `` tags in the form that you want to fill in.