]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: mention "@-" in more places
authorYedaya Katsman <yedaya.ka@gmail.com>
Mon, 5 Aug 2024 20:08:25 +0000 (23:08 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Aug 2024 09:47:27 +0000 (11:47 +0200)
Closes #14402

docs/cmdline-opts/data-binary.md
docs/cmdline-opts/data-urlencode.md

index 1ce53b32c67a9d73dd6bbc58bf492ca1c5f56869..4c5e4da8d1a68f86f477ae12be1ec2b745328bac 100644 (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
index 2bd84f3f16094666ce243be9e017aceb181ed09e..4edfb4d764f6a6b320fb24d7e7d21c22ed5c4021 100644 (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