http://www.perlmonks.org?node_id=22480


in reply to Getting a webpage through proxy

For CGI scripts, you can add

BEGIN { $ENV{http_proxy} = "http://your.proxy:port/" };

To the top of the script.