I have a script with which I POST data to a server using cURL. When I use an HTML form to POST the same data, the POST looks something like this and all is well:
description=Something&name=aName&xml=wholeBiunchOfData&xslt=moreData The XML and XSLT are large and change; I would prefer to maintain them in external files. However, the following does not work as I expect;
curl --cookie cjar --cookie-jar cjar --location --output NUL ^ --data "name=aName&description=Something" ^ --data "[email protected]" ^ --data "[email protected]" ^ http://someUrl.html I have tried various combinations of the @ and local files without success. How do I POST the contents of a file?