in reply to Help with LWP::UserAgent

yeah Data:umper was a typo but that wasnt the problem..

Hmm i tried almost all the suggestion here but it didnt seem to work:( Ok what if I need to access a page which requires authorisation instead. That is i need to set the cookies for a username and passowrd and add that to the request header before accessing the page. How can I do this via a perl script?
Any suggestions?

Replies are listed 'Best First'.
Re: Re: Help with LWP::UserAgent
by Corion (Patriarch) on Feb 06, 2004 at 09:08 UTC

    Read the documentation for LWP, LWP::Simple and WWW::Mechanize (and maybe even WWW::Mechanize::Shell). These do what you need, including authentification. WWW::Mechanize::Shell will try its best and write the Perl script for you, but maybe you're better off writing the script using WWW::Mechanize.