summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-14 19:48:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-14 19:48:29 +0000
commite2b0ad84296bb0b50443b53e68c5fdc5ddc602e7 (patch)
tree6a1c79a9389c274c480a9e61df43d9fd4d11b994
parent6eed95103a7238b74711f958fd2cb9e87d837e18 (diff)
downloadgnurl-e2b0ad84296bb0b50443b53e68c5fdc5ddc602e7.tar.gz
gnurl-e2b0ad84296bb0b50443b53e68c5fdc5ddc602e7.tar.bz2
gnurl-e2b0ad84296bb0b50443b53e68c5fdc5ddc602e7.zip
added some text for -d that says it "emulates filling in HTML forms" as that
is what most people will use -d for
-rw-r--r--docs/curl.117
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/curl.1 b/docs/curl.1
index 4b637109b..0587309d5 100644
--- a/docs/curl.1
+++ b/docs/curl.1
@@ -111,14 +111,15 @@ HTTP resume is only possible with HTTP/1.1 or later servers.
If this option is used serveral times, the last one will be used.
.IP "-d/--data <data>"
-(HTTP) Sends the specified data in a POST request to the HTTP server. Note
-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. 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
+(HTTP) Sends the specified data in a POST request to the HTTP server, in a way
+that can emulate as if a user has filled in a HTML form and pressed the submit
+button. Note 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. 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