How to download a web directory when authentication is required?

349 Views Asked by At

For instance, I want to fetch the entire

folder3

from a web site

http://something.com/folder1/folder2/folder3

I saw similar posts where the solution is given by wget. But in this case the web site ask me for user name and password, which I have. I tried to download the folder with wget when I was logged in but it didn't work.

Any help would be appreciated. BTW, I'm using Ubuntu.

1

There are 1 best solutions below

0
On BEST ANSWER

Sounds like you are using basic auth. You can pass this to wget with the following syntax:

wget http://user:password@website/....