diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-08-24 14:28:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-08-24 14:28:48 +0000 |
commit | 1be0bf56a6fb4b9c4491b5cdfa81d007f3bb53ba (patch) | |
tree | 20c5ea03a3548435e7de86a612cec11559aa37bc /docs/curl.1 | |
parent | 53c27988861f494ff482d4f73785969cb6af3ad9 (diff) |
new binary post details
Diffstat (limited to 'docs/curl.1')
-rw-r--r-- | docs/curl.1 | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/docs/curl.1 b/docs/curl.1 index 96cb7025f..dc781f6e1 100644 --- a/docs/curl.1 +++ b/docs/curl.1 @@ -2,7 +2,7 @@ .\" nroff -man curl.1 .\" Written by Daniel Stenberg .\" -.TH curl 1 "1 August 2000" "Curl 7.0" "Curl Manual" +.TH curl 1 "24 August 2000" "Curl 7.2" "Curl Manual" .SH NAME curl \- get a URL with FTP, TELNET, LDAP, GOPHER, DICT, FILE, HTTP or HTTPS syntax. @@ -88,16 +88,26 @@ If used with uploads, the ftp server command SIZE will not be used by curl. Upload resume is for FTP only. HTTP resume is only possible with HTTP/1.1 or later servers. .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. -The data is expected to be "url-encoded". This will cause curl to -pass the data to the server using the content-type +(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 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. + +To post data purely binary, you should instead use the --data-binary option. + +-d/--data is the same as --data-ascii. +.IP "--data-ascii <data>" +(HTTP) This is an alias for the -d/--data option. +.IP "--data-binary <data>" +(HTTP) This posts data in a similar manner as --data-ascii does, although when +using this option the entire context of the posted data is kept as-is. If you +want to post a binary file without the strip-newlines feature of the +--data-ascii option, this is for you. .IP "-D/--dump-header <file>" (HTTP/FTP) Write the HTTP headers to this file. Write the FTP file info to this |