save curl response to file code example
Example 1: curl output to a file
curl http://www.mysite.com -o myoutputfile.txt
Example 2: curl save file
curl -o target/path/filename URL
curl http://www.mysite.com -o myoutputfile.txt
curl -o target/path/filename URL