]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs/cmdline-opts: fix example and categories for --form-escape
authorEmanuele Torre <torreemanuele6@gmail.com>
Fri, 12 Aug 2022 03:18:10 +0000 (05:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 12 Aug 2022 06:39:03 +0000 (08:39 +0200)
The example was missing a "--form" argument
I also replaced "--form" with "-F" to shorten the line a bit since it
was already very long.

And I also moved --form-escape from the "post" category to the "upload"
category (this is what I originally wanted to fix, before also noticing
the mistake in the example).

Closes #9298

docs/cmdline-opts/form-escape.d
src/tool_listhelp.c

index a3eecde6a2085a5f1c34be05759431a94df8997a..a7fb189f8e248da178f17b245e921ea46018cb77 100644 (file)
@@ -5,8 +5,8 @@ Help: Escape multipart form field/file names using backslash
 Protocols: HTTP
 See-also: form
 Added: 7.81.0
-Category: http post
-Example: --form-escape --form 'field\\name=curl' 'file=@load"this' $URL
+Category: http upload
+Example: --form-escape -F 'field\\name=curl' -F 'file=@load"this' $URL
 ---
 Tells curl to pass on names of multipart form fields and files using
 backslash-escaping instead of percent-encoding.
index 5b2df5645edd129760c7026bcc1c052d608b5e1d..f3217be619c292e06826743ba099527ffd789a3c 100644 (file)
@@ -197,7 +197,7 @@ const struct helptxt helptext[] = {
    CURLHELP_HTTP | CURLHELP_UPLOAD},
   {"    --form-escape",
    "Escape multipart form field/file names using backslash",
-   CURLHELP_HTTP | CURLHELP_POST},
+   CURLHELP_HTTP | CURLHELP_UPLOAD},
   {"    --form-string <name=string>",
    "Specify multipart MIME data",
    CURLHELP_HTTP | CURLHELP_UPLOAD},