From bfa939d0627b57f021ddfab32dceb19ecba60de3 Mon Sep 17 00:00:00 2001 From: Yedaya Katsman Date: Mon, 5 Aug 2024 23:08:25 +0300 Subject: [PATCH] docs: mention "@-" in more places Closes #14402 --- docs/cmdline-opts/data-binary.md | 7 ++++--- docs/cmdline-opts/data-urlencode.md | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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 -- 2.47.3