- Joined
- Jan 23, 2011
- Posts
- 16,287
- Solutions
- 104
- Reaction
- 64,689
- Points
- 10,618
Question. How do I use wget ftp / http client tool to download files from password protected web page?
Answer. wget command supports username and password combo for both FTP and HTTP file download.
Pass following option to wget command:
--user=userName: Your FTP/HTTP username
--password=passWord : Your HTTP/FTP password
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.
Download a file called test.rar from phcorner.net:
Answer. wget command supports username and password combo for both FTP and HTTP file download.
Pass following option to wget command:
--user=userName: Your FTP/HTTP username
--password=passWord : Your HTTP/FTP password
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.
Download a file called test.rar from phcorner.net:
Code:
$ wget --user=ftpuser --password='ftpPassword' ftp://phcorner.net/protected/test.rar