Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, How might I change the following snippet so that I might request a page via a proxy address.
$ua = new LWP::UserAgent(keep_alive=>1); $ua->agent( "Mozilla/8.0(${^O};retmaspod)" ); $ua->cookie_jar( $cookie_jar ); $res = $ua->get( $url ); ParseePage( \$res->{_content});
Thanks.

Replies are listed 'Best First'.
Re: Get through a proxy
by Transient (Hermit) on Jun 09, 2005 at 22:03 UTC
Re: Get through a proxy
by CountZero (Bishop) on Jun 09, 2005 at 22:06 UTC
    Did you try LWP::UserAgent::ProxyAny?

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Re: Get through a proxy
by holli (Abbot) on Jun 09, 2005 at 22:05 UTC
    Problems with LWP might we worth for you to read. It includes some working code.


    holli, /regexed monk/