in reply to Perl Cgi Login Question

See the section on accessing protected content in the LWP cookbook.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^2: Perl Cgi Login Question
by echoangel911 (Sexton) on Aug 22, 2006 at 16:09 UTC
    Hello, I was able to get data from using
    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;
    however, how do you access the orignal site that I want go to instead of me retrival data from the site?
      In essence you don't. Because the authentication has been granted to your CGI script, not to the user.