From: Yedaya Katsman Date: Mon, 5 Aug 2024 20:08:25 +0000 (+0300) Subject: docs: mention "@-" in more places X-Git-Tag: curl-8_10_0~365 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfa939d0627b57f021ddfab32dceb19ecba60de3;p=thirdparty%2Fcurl.git docs: mention "@-" in more places Closes #14402 --- diff --git a/docs/cmdline-opts/data-binary.md b/docs/cmdline-opts/data-binary.md index 1ce53b32c6..4c5e4da8d1 100644 --- a/docs/cmdline-opts/data-binary.md +++ b/docs/cmdline-opts/data-binary.md @@ -18,9 +18,10 @@ Example: Post data exactly as specified with no extra processing whatsoever. -If you start the data with the letter @, the rest should be a filename. Data -is posted in a similar manner as --data does, except that newlines and -carriage returns are preserved and conversions are never done. +If you start the data with the letter @, the rest should be a filename. +`@-` makes curl read the data from stdin. Data is posted in a similar +manner as --data does, except that newlines and carriage returns are +preserved and conversions are never done. Like --data the default content-type sent to the server is application/x-www-form-urlencoded. If you want the data to be treated as diff --git a/docs/cmdline-opts/data-urlencode.md b/docs/cmdline-opts/data-urlencode.md index 2bd84f3f16..4edfb4d764 100644 --- a/docs/cmdline-opts/data-urlencode.md +++ b/docs/cmdline-opts/data-urlencode.md @@ -42,7 +42,7 @@ expected to be URL-encoded already. ## @filename load data from the given file (including any newlines), URL-encode that data -and pass it on in the POST. +and pass it on in the POST. Using `@-` makes curl read the data from stdin. ## name@filename load data from the given file (including any newlines), URL-encode that data