From 7c3822fe45058e89f408b7f3b06d4f77ef74f209 Mon Sep 17 00:00:00 2001 From: andy5995 Date: Mon, 6 Mar 2023 01:00:38 -0600 Subject: [PATCH] docs: note '--data-urlencode' option Closes #10687 --- docs/MANUAL.md | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.47.3