![]() |
Table of Contents
Perl and ProxiesNetwork Proxy ConfigurationDepending on the network configuration it may be necessary to configure FTP or HTTP proxies to connect to remote services. Most Perl modules which make network connections check the the environment for variables which define how to connect to a proxy. HTTP ProxyOn UNIX and UNIX-like systems the environment variables can be set in the shell.
On MS Windows the proxy configuration is obtained from the network configuration, and so should not need to be set on a per application basis. The environment variables can also be set from within a Perl program, for example: $ENV{'http_proxy'} = 'http://proxy.example.org:8080'; $ENV{'HTTP_proxy'} = 'http://proxy.example.org:8080'; In many cases the proxy details can also be passed to the Perl module directly. Since this is module specific, see the module documentation for details.
![]() |