Set environment variable HTTP_PROXY to the proxy URI. For example:
REM Under MSDOS/WinXX
set http_proxy=http://proxy.domain.com:port/
set ftp_proxy=http://proxy.domain.com:port/
# Korn Shell
export http_proxy=http://proxy.domain.com:port/
export ftp_proxy=http://proxy.domain.com:port/
Then, in the fetch code, include a call to $user_agent->env_proxy(). If you
are using one of the commandline tools that come with libwww-perl, it's
already there.
Run 'perldoc lwpcook' for more background. There is a section on proxies.
--
Mac :})
----- Original Message -----
From: "Ivan C Myrvold" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 14, 2000 11:38 AM
Subject: Perl and proxy
I want to fetch a web page with Perl, but I am behind a proxy. How can I do
it?