How to use wget with Username and Password for FTP / HTTP file retrieval

Do you want to use “wget”  ftp / http client tool to download files from password protected web pages ? Yes, you can do with “wget”. “Wget” command supports username and password  for both FTP and HTTP file retrieval.

Pass following option to wget command:

Example:

To download a single file

To download all the files recursively

These parameters can be overridden using the –ftp-user and –ftp-password options for FTP connections and the –http-user and –http-password options for HTTP connections.

Be the first to comment

Leave a Reply

Your email address will not be published.


*


*