cURL – Submit Form from Command Line

curl

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?

Best Answer

Something like this should do the trick: curl -d param="$(cat file1.txt)" ...

Related Question