
이 명령에서:
curl -d param1=value1 -d param2=value2 http://example.com/submit
그렇다면 명령에 cURL을 포함시키 value1
려면 file1.txt
어떻게 해야 합니까 ?file1.txt
답변1
다음과 같은 것이 트릭을 수행해야 합니다.curl -d param="$(cat file1.txt)" ...
이 명령에서:
curl -d param1=value1 -d param2=value2 http://example.com/submit
그렇다면 명령에 cURL을 포함시키 value1
려면 file1.txt
어떻게 해야 합니까 ?file1.txt
다음과 같은 것이 트릭을 수행해야 합니다.curl -d param="$(cat file1.txt)" ...