WOW! This script works. It does not really authenticate but it works for a
nt workstation that is member of a domain.

        use LWP::UserAgent;
        $ua = LWP::UserAgent->new;
        $ua->agent("AgentName/0.1 " . $ua->agent);
        $req = HTTP::Request->new(GET =>
'http://triptrap.planetinternet.be/contact.htm');
        print $ua->request($req)->as_string;

-----Original Message-----
From: Mark Reidel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 6:21 PM
To: 'Joris Lambrecht'; '[EMAIL PROTECTED]'
Subject: RE: libwww/LWP and proxy


Hi Joris!

The correct use is

--------------------------------------------------------------------
use LWP::UserAgent;
use HTTP::Request::Common;

my $proxy = "proxy.provider.be:8080";
my $ua = LWP::UserAgent->new;
$ua->proxy(['http'], "http://$Proxy/");
$response = $ua->request(GET $URL);
--------------------------------------------------------------------

Hope this helps.

        -Mark

        > -----Original Message-----
        > From: Joris Lambrecht [mailto:[EMAIL PROTECTED]]
        > Sent: Wednesday, February 07, 2001 3:55 PM
        > To: '[EMAIL PROTECTED]'
        > Subject: libwww/LWP and proxy
        > 
        > 
        > hi,
        > 
        > i'm not confident on how to enable the use of a proxy 
        > in my perl/asp script.
        > i suppose it's something like 
        > 
        > use LWP::simple
        > $ua->proxy='http://proxy.provider.be:8080'
        > 
        > i'm out in the blue and cannot find adequate 
        > documentation. (tried
        > activestate)
        > Any help would be most welcome.
        > 
        > 
        > Thank You,
        > 
        > 
        > Joris Lambrecht
        > _______________________________________________
        > ActivePerl mailing list
        > [EMAIL PROTECTED]
        > http://listserv.ActiveState.com/mailman/listinfo/activeperl
        > 
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to