From owner-freebsd-ports Sat Jun 2 19:10:42 2001 Delivered-To: freebsd-ports@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id D833537B424; Sat, 2 Jun 2001 19:10:38 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id 8AEEA3E32; Sat, 2 Jun 2001 19:10:38 -0700 (PDT) To: "David W. Chapman Jr." Cc: ports@FreeBSD.org, "stable" Subject: Re: ftp and www hosts In-Reply-To: <001301c0ebd1$14648c80$931576d8@inethouston.net>; from dwcjr@inethouston.net on "Sat, 2 Jun 2001 21:01:18 -0500" Date: Sat, 02 Jun 2001 19:10:38 -0700 From: Dima Dorfman Message-Id: <20010603021038.8AEEA3E32@bazooka.unixfreak.org> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "David W. Chapman Jr." 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-ports" in the body of the message