mirror of
https://github.com/curl/curl.git
synced 2025-09-17 09:32:48 +03:00
docs/cmdline-opts: fix example and categories for --form-escape
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
This commit is contained in:
parent
29b8e67f69
commit
2f0056680f
|
@ -5,8 +5,8 @@ Help: Escape multipart form field/file names using backslash
|
||||||
Protocols: HTTP
|
Protocols: HTTP
|
||||||
See-also: form
|
See-also: form
|
||||||
Added: 7.81.0
|
Added: 7.81.0
|
||||||
Category: http post
|
Category: http upload
|
||||||
Example: --form-escape --form 'field\\name=curl' 'file=@load"this' $URL
|
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
|
Tells curl to pass on names of multipart form fields and files using
|
||||||
backslash-escaping instead of percent-encoding.
|
backslash-escaping instead of percent-encoding.
|
||||||
|
|
|
@ -197,7 +197,7 @@ const struct helptxt helptext[] = {
|
||||||
CURLHELP_HTTP | CURLHELP_UPLOAD},
|
CURLHELP_HTTP | CURLHELP_UPLOAD},
|
||||||
{" --form-escape",
|
{" --form-escape",
|
||||||
"Escape multipart form field/file names using backslash",
|
"Escape multipart form field/file names using backslash",
|
||||||
CURLHELP_HTTP | CURLHELP_POST},
|
CURLHELP_HTTP | CURLHELP_UPLOAD},
|
||||||
{" --form-string <name=string>",
|
{" --form-string <name=string>",
|
||||||
"Specify multipart MIME data",
|
"Specify multipart MIME data",
|
||||||
CURLHELP_HTTP | CURLHELP_UPLOAD},
|
CURLHELP_HTTP | CURLHELP_UPLOAD},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user