Use terminal to get a file from web in OSX

To get a file from the web server use the following

curl -O http://www.hostname.com/folder1/file.log

link: http://osxdaily.com/2007/05/11/download-files-from-the-web-via-the-os-x-command-line/

Using cURL to automate HTTP job

link: http://curl.haxx.se/docs/httpscripting.html