LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Wget with username and password? (https://www.linuxquestions.org/questions/linux-general-1/wget-with-username-and-password-512060/)

centosfan 12-19-2006 05:14 PM

Wget with username and password?
 
hello i need to download some files over http protocol which require username and password but i dont know how to properly write wget command.Can anyone show me example?

GavB 12-19-2006 05:22 PM

Have you tried this?

wget http://username:password@domain.com/path/to/file.eg

I know that works with FTP

edenCC 12-19-2006 11:52 PM

Its better to have a man wget first.

hemantm 12-20-2006 05:32 AM

From man wget:
You can use --http-user and --http-passwd to specify the username /passwd.
You can also add these to $HOME/.wgetrc file.


All times are GMT -5. The time now is 07:09 AM.