파일 이름 앞에 @ 기호를 사용하여 서버에 데이터를 게시 하는 curl명령 의 예를 보고 있습니다.
curl http://localhost/ --data-binary @file.txt
이것은 무엇을 의미 하는가? 파일 내용을 명령에 삽입합니까? 특정 curl입니까?
답변
컬에만 적용됩니다. 보낸 사람 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.