In this command:
curl -d param1=value1 -d param2=value2 http://example.com/submit
If value1 is located in file1.txt, how can I make cURL include file1.txt in the command?
Something like this should do the trick: curl -d param="$(cat file1.txt)" ...
curl -d param="$(cat file1.txt)" ...
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
3 years ago