Re: proxy authorization

Gisle Aas (aas@bergen.sn.no)
02 Jan 1997 11:29:23 +0100


D Deng <deng@superprism.net> writes:

> I'm testdriving the netscape proxy server 2.5 with restrictions on
> users. Unfortunately the Proxy Authentication is not implemented in
> lwp. Is there a quick implementation out there or hints on how to
> implement it? I need it urgently.

Try to add a header like this one to all the requests you send:

  $req->header('Proxy-Authorization' => 
                     'Basic ' . MIME::Base64::encode("$user:$passwd", ''));

-- 
Gisle Aas                                         <aas@a.sn.no>
Schibsted Nett AS                                 http://www.sn.no/~aas/