aboutsummaryrefslogtreecommitdiff
path: root/docs/curl.1
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-10-27 10:52:38 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-10-27 10:52:38 +0000
commit1df033a1c5230ac7e98b7c9a62579c75b01f29fd (patch)
treec3f9708ed93f0f8bec4eeaa665554bc86fcdc6c1 /docs/curl.1
parent3264ce04ee1429a5b4264abebf5c2b9f8b16fbf4 (diff)
Added description on how to use the newly supported multiple -d options
Diffstat (limited to 'docs/curl.1')
-rw-r--r--docs/curl.113
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/curl.1 b/docs/curl.1
index be07ecbc4..894a1485a 100644
--- a/docs/curl.1
+++ b/docs/curl.1
@@ -2,7 +2,7 @@
.\" nroff -man curl.1
.\" Written by Daniel Stenberg
.\"
-.TH curl 1 "26 September 2000" "Curl 7.3" "Curl Manual"
+.TH curl 1 "26 October 2000" "Curl 7.4.2" "Curl Manual"
.SH NAME
curl \- get a URL with FTP, TELNET, LDAP, GOPHER, DICT, FILE, HTTP or
HTTPS syntax.
@@ -93,11 +93,16 @@ HTTP resume is only possible with HTTP/1.1 or later servers.
that the data is sent exactly as specified with no extra processing (with all
newlines cut off). The data is expected to be "url-encoded". This will cause
curl to pass the data to the server using the content-type
-application/x-www-form-urlencoded. Compare to -F.
+application/x-www-form-urlencoded. Compare to -F. If more than one -d/--data
+option is used on the same command line, the data pieces specified will be
+merged together with a separating &-letter. Thus, using '-d name=daniel -d
+skill=lousy' would generate a post chunk that looks like
+'name=daniel&skill=lousy'.
If you start the data with the letter @, the rest should be a file name to
-read the data from, or - if you want curl to read the data from stdin.
-The contents of the file must already be url-encoded.
+read the data from, or - if you want curl to read the data from stdin. The
+contents of the file must already be url-encoded. Multiple files can also be
+specified.
To post data purely binary, you should instead use the --data-binary option.