So far i've managed to deduct that LWP::Simple is of no use with Microsoft
proxy.
LWP::UserAgent however, is.

Trouble is to get the authentication done with a socks 5 proxy like
microsoft proxy.

Greets,

Joris

-----Original Message-----
From: Joris Lambrecht [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 5:10 PM
To: '[EMAIL PROTECTED]'
Subject: LWP::Simple module with Microsoft proxy troubles


Running on IIS5.0/W2KProf/activestate perl.

This is my script : 

use LWP::Simple;
use LWP::UserAgent;
 $ua = new LWP::UserAgent;
 $ua->proxy(['http', 'ftp'] => 'http://192.168.000.000:80/');
 $req = new HTTP::Request 'GET',"http://www.perl.com";
 $req->proxy_authorization_basic("testuser", "testpwd");
 $res = $ua->request($req);
 print ("$res->content if $res->is_success");
 print ("$req");

This is my output (identical to perl/asp script output, though print =>
$response->write)  :

C:\>perl test.pl
HTTP::Response=HASH(0x1e45318)->content if
HTTP::Response=HASH(0x1e45318)->is_su
ccessHTTP::Request=HASH(0x1c74da0)

Where do the hashes come from, how do i change this into humanreadable
output ?

I've tested LWP to work with my localhost, and it does.
It must be the proxy authentication that does not work.

Thanks,

Joris
_______________________________________________
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