• Download and save the file to its origin name:
curl -O http://www.gnu.org/software/gettext/manual/gettext.html
  • Download and save to another file name:
curl -o mygettext.html http://www.gnu.org/software/gettext/manual/gettext.html
  • Fetch Multiple Files at a time
curl -O URL1 -O URL2
  • Continue/Resume a Previous Download
curl -C - -O http://www.gnu.org/software/gettext/manual/gettext.html
  • Follow HTTP Location Headers with -L option
curl -L http://www.google.com
  • Pass HTTP/FTP Authentication in cURL
curl -u username:password URL
curl -u ftpuser:ftppass -O ftp://ftp_server/public_html/xss.php
  • Upload Files to FTP Server
curl -u ftpuser:ftppass -T "{file1,file2}" ftp://ftp.testserver.com
  • Use Proxy to Download a File
curl -x proxysever.test.com:3128 http://google.co.in