From owner-freebsd-current Wed Nov 20 18:33:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46C5737B401; Wed, 20 Nov 2002 18:33:16 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id B670443E3B; Wed, 20 Nov 2002 18:33:15 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id gAL2X71K007813; Wed, 20 Nov 2002 20:33:07 -0600 (CST) (envelope-from dan) Date: Wed, 20 Nov 2002 20:33:07 -0600 From: Dan Nelson To: Kris Kennaway Cc: current@FreeBSD.ORG, des@FreeBSD.ORG, fenner@FreeBSD.ORG, webmaster@ee.ethz.ch Subject: Re: fetch: multiple choices Message-ID: <20021121023307.GB92797@dan.emsphone.com> References: <20021121013121.GA14917@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021121013121.GA14917@rot13.obsecurity.org> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Nov 20), Kris Kennaway said: > What on earth does this mean? > > >> mrtg-2.9.26b.tar.gz doesn't seem to exist in /tmp/distfiles/. > >> Attempting to fetch from http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/. > fetch: mrtg-2.9.26b.tar.gz: Multiple Choices According to RFC 2616, an HTTP 300 (Multiple Choices) return code means that the requested URL is available at multiple locations to be listed in the returned document. The requested file actually does _not_ exist, and people.ee.ethz.ch is broken in that it is returning an HTTP 300, and then listing similar filenames in the same directory. I don't believe this is the correct behaviour; the file really does not exist. It should have returned HTTP 404. HTTP 300 is meant for places like the sourceforge download farm, where one primary URL ends up directing you to multiple alternate locations all serving the identical file. In an ideal world, the 300 response would have pointed to mirror sites, and fetch would have just picked one (possibly multiple ones for segmented downloading) and downloaded it. In the current world, it's just as well that fetch didn't try anything, as all the of the listed urls were wrong anyway. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message