From owner-freebsd-stable Tue Jan 2 14:38: 7 2001 From owner-freebsd-stable@FreeBSD.ORG Tue Jan 2 14:38:04 2001 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from math.uic.edu (galois.math.uic.edu [131.193.178.114]) by hub.freebsd.org (Postfix) with SMTP id 4255537B400 for ; Tue, 2 Jan 2001 14:38:04 -0800 (PST) Received: (qmail 15973 invoked by uid 31415); 2 Jan 2001 22:37:46 -0000 Date: Tue, 2 Jan 2001 16:37:46 -0600 From: "Vladimir V. Egorin" To: David Burren Cc: ian j hart , "stable@freebsd.org" Subject: Re: fetch problem Message-ID: <20010102163746.A15961@math.uic.edu> References: <20010102132905.A15311@math.uic.edu> <3A5243C1.4314EDCB@freeloader.freeserve.co.uk> <20010102153722.A15840@math.uic.edu> <3A524FAB.77C814C0@burren.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A524FAB.77C814C0@burren.cx>; from david@burren.cx on Wed, Jan 03, 2001 at 09:01:15AM +1100 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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