curlコマンドでファイル名の前の@(at)記号はどういう意味ですか?

curlコマンドでファイル名の前の@(at)記号はどういう意味ですか?

私は見ていますcurlコマンド例ファイル名の前に @ 記号を使用してサーバーにデータを送信します。

curl http://localhost/ --data-binary @file.txt

どういう意味ですか?ファイルの内容をコマンドに挿入しますか?具体的にターゲットになっていますかcurl

ベストアンサー1

カールに特化しています。からman curl

--data-binary <data>
  (HTTP) This posts 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-ascii does, except that newlines are preserved
  and conversions are never done.

  If this option is used several times, the ones following the first will append data
  as described in -d, --data.

おすすめ記事