cURL & wget

cURL is a software package which consists of command line tool and a library for transferring data using URL syntax.

cURL supports various protocols like, DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP.


  • curl
  • curl -O URL1 -O URL2     // multiple file downloads
  • curl -L     // follow HTTP location headers.
  • curl -C – -O
    // continue & resume download
  • curl -z 21-Dec-11     // download a file if modified after given date.
  • curl -u username:password URL   // pass http authentication in curl
  • curl -u ftpuser:ftppass -O ftp://ftp_server/public_html/xss.php     // download files from ftp server
  • curl dict://   // get definition of a word with DICT protocol
  • curl -x   // use proxy for file download
  • curl –mail-from –mail-rcpt smtp://    // send mail with SMTP protocol


wget utility is the best option to download files from internet. wget can pretty much handle all complex download situations including large file downloads, recursive downloads, non-interactive downloads, multiple file downloads etc.



Two interesting blog posts that I have come across for cURL and wget. The definitions and examples in this post are taken from these.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s