>The code is as follows:
>
>#!/usr/bin/perl
>use LWP::UserAgent;
>$ua = LWP::UserAgent->new;
>#$ua->env_proxy; # initialize from environment variables
>$ua->proxy(ftp  => '172.16.0.1');
>$ua->proxy(http => '172.16.0.1');
>#$ua->no_proxy(qw(no se fi));
>my $req = HTTP::Request->new(GET => 'http://www.somewebsite.org/');
>print $ua->request($req)->as_string;
>

this is going to sound absolutely retarded, but did you include

use HTTP::Request;

in your code?  =)


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to