Sorry, don't mean to nag you all by asking again but thought I might be
lucky to get atleast one reply this time @:)
I thought this was a very typical situation most of us would have found
ourselves at some point of time...proxies occur as commonly as perl
itself...I reconfigured ppm and it asked my proxy details but it didn't
help...

-----Original Message-----
From: Aman Thind [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 4:20 PM
To: [EMAIL PROTECTED]
Subject: Authenticating to the proxy


Hullo Friends

I need to authenticate to a proxy server in order to access the internet.

How can I do this so that my lwp scripts may run ?

I tried this but am still unable to connect to the net :


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

Also, how can I have access to the net through proxy using PPM ?

I have set the user variables HTTP_proxy , HTTP_proxy_user and
HTTP_proxy_pass but I still get the msg "Could not locate a PPD file for..."
Thanks
aman





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

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

Reply via email to