use HTTP::Request;
use LWP::UserAgent;
my $AGENT = LWP::UserAgent->new;
$AGENT->agent("slinky/1.02 " . $AGENT->agent);
$AGENT->env_proxy;
$AGENT->timeout(30);
my $url="http://hargenscragen.tripod.com/";
$url = URI->new($url);
my $req = HTTP::Request->new(GET => $url);
#my $response=$AGENT->simple_request($req); #Error on redirect
my $response=$AGENT->request($req); #o to the
redirect page
Check out this link:-
http://www.stonehenge.com/merlyn/WebTechniques/
Check out the articles:-
Col07
Col11
Col 14
col27
Col35
For more uses and examples!
Regards
Marty
----- Original Message -----
From: "Charles Maier" <[EMAIL PROTECTED]>
To: "Perl-Win32-Users Mailing List"
<[EMAIL PROTECTED]>
Sent: Thursday, May 18, 2000 4:32 PM
Subject: LWP-UserAgent ??
>
> Would/could someone please post a simple but specific example using
> LWP::UserAgent to retrieve a webpage to a variable??
>
> I am aware of LWP::Simple.. but I NEED the LWP::UserAgent because of its
> abillity to timeout the request and I can not fathom the docs with the
> module and I have never been able to get it to work for me.
>
> Thank you
> Chuck
>
>
> ---
> You are currently subscribed to perl-win32-users as: [EMAIL PROTECTED]
> To unsubscribe, forward this message to
> [EMAIL PROTECTED]
> For non-automated Mailing List support, send email to
> [EMAIL PROTECTED]
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]