in reply to LWP::Simple request through a proxy

Your code isn't doing an LWP::Simple request. It's doing its request through LWP::UserAgent (LWP::Simple will use LWP::UserAgent itself as well). Do one to three things: Futher note that the second argument of the proxy method must be the proxy you are using - not the site you want to reach via a proxy.

Abigail

Replies are listed 'Best First'.
Re: Re: LWP::Simple request through a proxy
by Anonymous Monk on May 25, 2004 at 10:51 UTC
    Step two above is exactly what I wanted but I wasn't quite sure exactly what was required but I am now so for others for future reference:
    # use proxy (comment out if not) my %proxy = ( host => 'http://proxy:8080' ); use LWP::Simple qw(mirror RC_OK RC_NOT_MODIFIED $ua); $ua->proxy(http => "$proxy{host}") if (defined $proxy{host});
    You can see I'm just interested in using mirror.
A reply falls below the community's threshold of quality. You may see it by logging in.