Date: Thu, 21 Nov 2002 09:53:08 -0800 From: Bill Fenner <fenner@research.att.com> To: kris@obsecurity.org Cc: current@FreeBSD.org, des@FreeBSD.org Subject: Re: fetch: multiple choices Message-ID: <200211211753.JAA29199@windsor.research.att.com>
next in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211211753.JAA29199>