Help for this page

Select Code to Download


  1. or download this
    use LWP::UserAgent;
    
    ...
    $lwp->credentials("$servername:$port", $realm, $username, $password);
    my $response = $lwp->get($url);
    print $response->as_string;
    
  2. or download this
    my $url="$url";
    my $req = $browser->get($url);  <--- response object, not request obje
    +ct
    ...
                                                     <--- generating the e
    +rror.....
    my $res = $browser->request($req);
    print $res->as_string;