Date: Tue, 2 Jan 2001 16:37:46 -0600 From: "Vladimir V. Egorin" <vladimir@math.uic.edu> To: David Burren <david@burren.cx> Cc: ian j hart <ianjhart@freeloader.freeserve.co.uk>, "stable@freebsd.org" <stable@freebsd.org> Subject: Re: fetch problem Message-ID: <20010102163746.A15961@math.uic.edu> In-Reply-To: <3A524FAB.77C814C0@burren.cx>; from david@burren.cx on Wed, Jan 03, 2001 at 09:01:15AM %2B1100 References: <20010102132905.A15311@math.uic.edu> <3A5243C1.4314EDCB@freeloader.freeserve.co.uk> <20010102153722.A15840@math.uic.edu> <3A524FAB.77C814C0@burren.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 03, 2001 at 09:01:15AM +1100, David Burren wrote: > "Vladimir V. Egorin" wrote: > > >>> I've set > >>> export FTP_PROXY=ftp://proxy_address:1080/ > >>> export HTTP_PROXY=http://proxy_address:1080/ > >>> I've also tried setting FTP_PASSIVE_MODE. > > > ian j hart wrote: > > >> setenv HTTP_PROXY proxy_address:1080 > > > This solves it. fetch works if FTP_PROXY is not set. Many thanks to > > everyone for your replies and help. > > Unfortunately, over time different programs have looked for different > env vars to control this. The setup I use that seems to work for > everything is (translated to your example): > > export HTTP_PROXY=proxy_address:1080 > export http_proxy=http://$HTTP_PROXY/ > export ftp_proxy=$http_proxy > > If you were specifying $ftp_proxy to point to a joint FTP/HTTP proxy, > you would typically specify that it should use "http" to talk to it. > > As you said, fetch works with just HTTP_PROXY. I think it's lynx which > uses the other variables. I set them up a long time ago and everything The other variables (http_proxy and ftp_proxy) are also used by ftp. Here is another problem: I cannot use /usr/bin/ftp with this setup. For lynx, fetch, the proxy does DNS resolution, but ftp calls gethostbyname(), which fails for any addresses that are not a part of internal network. > just works. > __ > David Burren -- Vladimir To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010102163746.A15961>