Can wget do this?

Daniel Carrillo daniel.carrillo at gmail.com
Fri Dec 4 17:33:21 UTC 2009


2009/12/4 Yong Huang <yong321 at yahoo.com>

> Excuse me for a message not related to Red Hat.
>
> I'd like to download a bunch of documents from a web site which requires
> login. I can manually go to www.example.com/login.html to type in username
> and password, and then go to www.example.com/page1.html, then
> .../page2.html, etc. Can wget allow me to go to the login.html page to login
> and in the same HTTP session (i.e. same names and values for the cookies)
> and continue to pageX.html? Thanks.
>

I think that curl is better than wget for this work, but you can do the
same:

man wget

searh for --post-data and --save-cookies (do login)
search for --load-cookies (do authenticated navigation).

Kind Regards.



More information about the redhat-list mailing list