docs: mention "@-" in more places

Closes #14402
This commit is contained in:
Yedaya Katsman 2024-08-05 23:08:25 +03:00 committed by Daniel Stenberg
parent 67d5e3624b
commit bfa939d062
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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