mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
added some text for -d that says it "emulates filling in HTML forms" as that
is what most people will use -d for
This commit is contained in:
parent
6eed95103a
commit
e2b0ad8429
17
docs/curl.1
17
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.
|
If this option is used serveral times, the last one will be used.
|
||||||
.IP "-d/--data <data>"
|
.IP "-d/--data <data>"
|
||||||
(HTTP) Sends the specified data in a POST request to the HTTP server. Note
|
(HTTP) Sends the specified data in a POST request to the HTTP server, in a way
|
||||||
that the data is sent exactly as specified with no extra processing (with all
|
that can emulate as if a user has filled in a HTML form and pressed the submit
|
||||||
newlines cut off). The data is expected to be "url-encoded". This will cause
|
button. Note that the data is sent exactly as specified with no extra
|
||||||
curl to pass the data to the server using the content-type
|
processing (with all newlines cut off). The data is expected to be
|
||||||
application/x-www-form-urlencoded. Compare to -F. If more than one -d/--data
|
"url-encoded". This will cause curl to pass the data to the server using the
|
||||||
option is used on the same command line, the data pieces specified will be
|
content-type application/x-www-form-urlencoded. Compare to -F. If more than
|
||||||
merged together with a separating &-letter. Thus, using '-d name=daniel -d
|
one -d/--data option is used on the same command line, the data pieces
|
||||||
skill=lousy' would generate a post chunk that looks like
|
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'.
|
'name=daniel&skill=lousy'.
|
||||||
|
|
||||||
If you start the data with the letter @, the rest should be a file name to
|
If you start the data with the letter @, the rest should be a file name to
|
||||||
|
Loading…
Reference in New Issue
Block a user