I am trying to post a large XML file to a web address by using curl in a shell script. I am posting the data using the '-F' option in curl. Whenever I post a file larger than 1024 bytes, the file gets cut off and only sends the first 1024. I've tried changing the "Expect:" header as suggested in another solution for PHP Curl, but it does not work.
Here is the command line I am using:
curl -F "xml=</fileoutput.xml" http://servername/page.html
As I said earlier, I've tried both -H "Expect:" -H "Expect: 100-continue"
Neither work. Please help!