How To Use wget With Username and Password for FTP / HTTP File Retrieval
Q. How do I use wget ftp / http client tool to download files from password protected web page?
A. wget command supports username and password combo for both FTP and HTTP file retrieval.
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 foo.pdf from theos.in:
$ wget --user=vivek --password='myPassword' http://theos.in/protected/area/foo.pdf
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Linux / UNIX FAQ:
- Default username created during a new installation of Linux?
- How To Use Proxy Server To Access Internet at Shell Prompt With http_proxy Variable
- Configure a system to automount a Samba share with /etc/fstab
- What is my root password for MySQL?
- Samba mount and access large 2GB+ files from share or NAS device
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Please do not use the comment form to ask for help / question. Ask your question on the excellent Linux tech support forum. Thank you very much for stopping by our site!
Tags: client tool, download file from password protected area, ftp client, http client, parameters, password combo, password options, wget command ~ Last updated on: May 2, 2008



Recent Comments
Yesterday ~ 3 Comments
Yesterday ~ 19 Comments
Yesterday ~ 2 Comments
Yesterday ~ 37 Comments
Yesterday ~ 46 Comments