in reply to LWP and Logging into webpages
use HTTP::Request; use LWP::UserAgent; use strict; my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(POST=>'http://192.168.0.1/authtest/index. +html'); $req->authorization_basic('yourname', 'password'); my $content = $ua->request($req)->as_string; print "Content is $content";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: login???
by maddfisherman (Sexton) on Jun 22, 2002 at 23:39 UTC | |
by joealba (Hermit) on Jun 23, 2002 at 14:26 UTC | |
by maddfisherman (Sexton) on Jun 23, 2002 at 16:14 UTC | |
by joealba (Hermit) on Jun 24, 2002 at 13:04 UTC | |
by maddfisherman (Sexton) on Jun 28, 2002 at 18:17 UTC | |
by crazyinsomniac (Prior) on Jun 23, 2002 at 05:02 UTC |