%20%EA%B8%B0%ED%98%B8%EB%8A%94%20%EB%AC%B4%EC%97%87%EC%9D%84%20%EC%9D%98%EB%AF%B8%ED%95%A9%EB%8B%88%EA%B9%8C%3F.png)
나는 보고 있다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.