From owner-freebsd-current Thu Nov 21 9:53:14 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 8200237B401; Thu, 21 Nov 2002 09:53:12 -0800 (PST) Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id D140643E9E; Thu, 21 Nov 2002 09:53:11 -0800 (PST) (envelope-from fenner@research.att.com) Received: from alliance.research.att.com (alliance.research.att.com [135.207.26.26]) by mail-blue.research.att.com (Postfix) with ESMTP id E78504CED3; Thu, 21 Nov 2002 12:53:10 -0500 (EST) Received: from windsor.research.att.com (windsor.research.att.com [135.207.26.46]) by alliance.research.att.com (8.8.7/8.8.7) with ESMTP id MAA24161; Thu, 21 Nov 2002 12:53:09 -0500 (EST) From: Bill Fenner Received: (from fenner@localhost) by windsor.research.att.com (8.8.8+Sun/8.8.5) id JAA29199; Thu, 21 Nov 2002 09:53:09 -0800 (PST) Message-Id: <200211211753.JAA29199@windsor.research.att.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=19701020; charset=US-ASCII To: kris@obsecurity.org Subject: Re: fetch: multiple choices Cc: current@FreeBSD.org, des@FreeBSD.org Date: Thu, 21 Nov 2002 09:53:08 -0800 Versions: dmail (solaris) 2.5a/makemail 2.9d 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 --19701020 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline >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 It means the web server is behaving oddly. Here's a patch that gives you a chance of understanding what's going on; it makes fetch -v display the returned page in this case. --19701020 Content-Type: text/plain; name="fetch-http-300.diff"; x-unix-mode=0644 Content-Disposition: attachment; filename="fetch-http-300.diff" Index: http.c =================================================================== RCS file: /home/ncvs/src/lib/libfetch/http.c,v retrieving revision 1.64 diff -u -r1.64 http.c --- http.c 30 Oct 2002 15:01:29 -0000 1.64 +++ http.c 21 Nov 2002 17:46:39 -0000 @@ -1005,10 +1005,15 @@ /* all other cases: we got a redirect */ e = conn->err; need_auth = 0; + if (!new) { + DEBUG(fprintf(stderr, "redirect with no new location\n")); + if ((f = _http_funopen(conn, chunked)) != NULL) { + _http_print_html(stderr, f); + } + } _fetch_close(conn); conn = NULL; if (!new) { - DEBUG(fprintf(stderr, "redirect with no new location\n")); break; } if (url != URL) --19701020 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Bill --19701020-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message