curl save output to file code example
Example 1: curl output to a file
curl http://www.mysite.com -o myoutputfile.txt
Example 2: how to download using curl
curl http://some.url --output some.file
Example 3: curl save file
curl -o target/path/filename URL