in reply to Proxy Experts Out There?

You didn't mention if you were using LWP::UserAgent to fetch the pages, but, if that is the case, then it's simply a matter of setting the proxy in the user agent object.

First, create the user agent:
$ua = new LWP::UserAgent;

Next, set the proxy in the user agent:
$ua->proxy('http', 'http://proxy.mylocalproxy.com:8001/');

Then, do the request:
$ua->simple_request($request)

Note: The docuemntation gives more details: The $request should be a reference to a HTTP::Request object with values defined for at least the method() and uri() attributes.

Replies are listed 'Best First'.
Re: Re: Proxy Experts Out There?
by fsn (Friar) on Sep 04, 2001 at 19:49 UTC
    If you have global proxy setting in your environment already (http_proxy,no_proxy and friends), you can also use env_proxy() to get them:

    $ua->env_proxy();

    I recommend man LWP::UserAgent .