Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Jun 2001 19:10:38 -0700
From:      Dima Dorfman <dima@unixfreak.org>
To:        "David W. Chapman Jr." <dwcjr@inethouston.net>
Cc:        ports@FreeBSD.org, "stable" <stable@FreeBSD.ORG>
Subject:   Re: ftp and www hosts 
Message-ID:  <20010603021038.8AEEA3E32@bazooka.unixfreak.org>
In-Reply-To: <001301c0ebd1$14648c80$931576d8@inethouston.net>; from dwcjr@inethouston.net on "Sat, 2 Jun 2001 21:01:18 -0500"

next in thread | previous in thread | raw e-mail | index | archive | help
"David W. Chapman Jr." <dwcjr@inethouston.net> writes:
> Is there a way to patch the ftp binary to send along "Host: " when
> connecting to a web server so ports like webfs can be downloaded.  Currently
> ftp won't connect to http://bytesex.org/misc/ to download webfs

The ports collection only uses ftp(1) if it can't find fetch(1):

	.if exists(/usr/bin/fetch)
	# avoid -A for 2.2 -- it's not ported to that branch
	.if ${OSVERSION} < 300000
	FETCH_CMD?=		/usr/bin/fetch
	.else
	FETCH_CMD?=		/usr/bin/fetch -A
	.endif
	#FETCH_BEFORE_ARGS+=	$${CKSIZE:+-S $$CKSIZE}
	.else
	FETCH_CMD?=		/usr/bin/ftp
	.endif

And fetch(1) supports HTTP/1.1, so it doesn't have this problem:

	dima@hornet% fetch http://bytesex.org/misc/webfs_1.12.tar.gz
	Receiving webfs_1.12.tar.gz (35032 bytes): 100%
	35032 bytes transferred in 1.0 seconds (33.71 kBps)

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?20010603021038.8AEEA3E32>