in reply to LWP and proxies

You can try using the methods available from LWP::UserAgent and HTTP:Request: (from perldoc lwpcook)
use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->proxy(['http', 'ftp'] => 'http://proxy.myorg.com'); my $req = HTTP::Request->new('GET',"http://www.perl.com"); $req->proxy_authorization_basic("proxy_user", "proxy_password"); my $res = $ua->request($req); print $res->content if $res->is_success;

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--

Replies are listed 'Best First'.
That works! Re: LPW and proxies
by John M. Dlugosz (Monsignor) on Jun 01, 2001 at 02:05 UTC
    Adding the proxy_authorization_basic call works. In fact, simply saying

    $request->proxy_authorization_basic($ENV{HTTP_proxy_user}, $ENV{HTTP_p +roxy_pass});

    works too, so the info is in the env just fine. It's just not working the way the manual says it should, for some reason??

    —John