Re: Can wget do this?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/12/4 Yong Huang <yong321@xxxxxxxxx>

> 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.
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux