in reply to Forcing LWP-UserAgent to use a proxy server without modifying code
Reading the LWP::UserAgent documentation, you will find that $ENV{HTTP_PROXY} is only evaluated if you call the $ua->env_proxy method. You can either modify your code or modify (say) LWP/UserAgent.pm so that the ->new constructor automatically calls env_proxy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Forcing LWP-UserAgent to use a proxy server without modifying code
by mvaline (Friar) on Jan 04, 2008 at 18:55 UTC | |
by Old_Gray_Bear (Bishop) on Jan 04, 2008 at 19:24 UTC | |
by Massyn (Hermit) on Jan 05, 2008 at 07:59 UTC |