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:
1 2 3 4 |
--user=userName: Your FTP/HTTP username --password=passWord : Your HTTP/FTP password |
Example: To download a single file
1 2 3 |
#wget –user=yourusername –password=’your ftp password’ -r http://blog.iyngaran.info/folder-name/filename.pdf |
To download all the files recursively
1 2 3 |
#wget –user=yourusername –password=’your ftp password’ -r ftp://168.144.247.141 |
These parameters can be overridden using the –ftp-user and –ftp-password options for FTP connections and […]