Grace,

You are using the wrong authorization method.  For the proxy server, you 
want proxy_authorization_basic.

 From the lwpfaq:
X) How do I use LWP when I am behind a proxy server?
     Look at lwpcook for more detail (perldoc lwpcook)
     Code:
         my $ua = new LWP::UserAgent;
         $ua->proxy(['http','ftp'] => "YOUR.PROXY.COM");
         my $req = new HTTP::Request 'GET',"http://www.perl.com";
         $req->proxy_authorization_basic("PROXY_USERNAME","PROXY_PASSWORD");
                 (Where YOUR.PROXY.COM is your proxy server,and PROXY_USERNAME
                  and PROXY_PASSWORD are needed to log into the proxy server.
                  You can skip the proxy_auth_basic step if your server is 
open)
         $response = $ua->request($req);

You can find the lwpfaq at:
         http://people.we.mediaone.net/kfrankel/lwpfaq.txt

Also, read the lwpcook, it has more detail and topics than the faq.

-- Kenn

At 06:00 PM 1/25/00 -0500, [EMAIL PROTECTED] wrote:

>Hi,
>
>We are trying to send the url request through the proxy. however the
>authorization is always failed.
>We are  using $req->authorization_basic (HTTP::request module), Is this 
>correct
>?
>Is there any module or method else we can use ?
>
>Please help
>
>Thank you very much

-----
Kenneth Frankel
[EMAIL PROTECTED]

Reply via email to