Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
the output I get is;require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; my $response = $ua->get('http://toolsview/bcp_tool/'); if ($response->is_success) { print $response->content; # or whatever } else { die $response->status_line; }
Which is a web page that requests users to login (i.e. to insert a user ID and a password then click on the 'Login' button).<html> <head> <title>BCP Administrator Console</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1 +"> </head> <frameset rows="90,*" frameborder="NO" border="0" framespacing="0" col +s="*"> <frame name="top" scrolling="NO" noresize src="top.asp" frameborder= +"NO" > <frame name="main" src="logon.asp"> </frameset> <noframes> <body bgcolor="#FFFFFF" text="#000000"> </body> </noframes> </html>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: My first LWP script
by Joost (Canon) on Jun 15, 2004 at 16:13 UTC | |
Re: My first LWP script
by atcroft (Abbot) on Jun 15, 2004 at 16:19 UTC | |
by a,s5 (Initiate) on Jun 15, 2004 at 20:04 UTC | |
by Anonymous Monk on Jun 15, 2004 at 20:42 UTC | |
by spartan (Pilgrim) on Jun 16, 2004 at 20:25 UTC | |
Re: My first LWP script
by Qiang (Friar) on Jun 15, 2004 at 19:35 UTC | |
by mako132 (Initiate) on Jun 15, 2004 at 20:46 UTC | |
by Qiang (Friar) on Jun 15, 2004 at 21:26 UTC | |
Re: My first LWP script
by Anonymous Monk on Jun 16, 2004 at 01:07 UTC |