curl results to file code example
Example 1: curl output to a file
curl http://www.mysite.com -o myoutputfile.txt
Example 2: curl data from file
curl -i -X POST host:port/post-file \
-H "Content-Type: text/xml" \
--data-binary "@path/to/file"