aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/form.d
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-10-29 13:57:16 +0100
committermonnerat <monnerat@users.noreply.github.com>2017-10-29 16:23:06 +0100
commitf82f952d2f941f756ce95e970c139e051daa8a8d (patch)
tree5f75903469ba777830541d1d1fcc33f3d264ec50 /docs/cmdline-opts/form.d
parent7ee59512f875604eb468fb6f3d26e39290f781c9 (diff)
cli tool: in -F option arg, comma is a delimiter for files only
Also upgrade test 1133 to cover this case and clarify man page about form data quoting. Bug: https://github.com/curl/curl/issues/2022 Reported-By: omau on github
Diffstat (limited to 'docs/cmdline-opts/form.d')
-rw-r--r--docs/cmdline-opts/form.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/cmdline-opts/form.d b/docs/cmdline-opts/form.d
index b3251bdb8..d95d0cc38 100644
--- a/docs/cmdline-opts/form.d
+++ b/docs/cmdline-opts/form.d
@@ -57,6 +57,11 @@ or
Note that if a filename/path is quoted by double-quotes, any double-quote
or backslash within the filename must be escaped by backslash.
+Quoting must also be applied to non-file data if it contains semicolons,
+leading/trailing spaces or leading double quotes:
+
+ curl -F 'colors="red; green; blue";type=text/x-myapp' example.com
+
You can add custom headers to the field by setting headers=, like
curl -F "submit=OK;headers=\\"X-submit-type: OK\\"" example.com