Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know how to Automate HTTP User Authentication with a PERL client? Has anyone done this? I am pushing the envelope to my abilities with perl and need to finishe a project.

Replies are listed 'Best First'.
Re: WWW-Authenticate
by trantor (Chaplain) on Aug 10, 2001 at 01:29 UTC

    Have a look at LPW::Authen::Basic

    A simple snippet, taken from lwpcook manpage (perldoc lwpcook):

    use LWP::UserAgent; $ua = LWP::UserAgent->new; $req = HTTP::Request->new(GET => 'http://www.linpro.no/secret +/'); $req->authorization_basic('aas', 'mypassword'); print $ua->request($req)->as_string;

    -- TMTOWTDI