]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: note '--data-urlencode' option
authorandy5995 <arch_stanton5995@protonmail.com>
Mon, 6 Mar 2023 07:00:38 +0000 (01:00 -0600)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Mar 2023 14:35:48 +0000 (15:35 +0100)
Closes #10687

docs/MANUAL.md

index 44f6f5501d02311d726e75bde1c71e056a4bc083..aacf1768dc75aa33c14aca8c3d71d9efee159c9f 100644 (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.