From owner-freebsd-current Mon Jun 24 05:46:10 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA18386 for current-outgoing; Mon, 24 Jun 1996 05:46:10 -0700 (PDT) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.eu.org [193.56.58.253]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA18357; Mon, 24 Jun 1996 05:46:03 -0700 (PDT) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.eu.org [193.56.58.33]) by mexico.brainstorm.eu.org (8.7.5/8.7.3) with ESMTP id OAA06090; Mon, 24 Jun 1996 14:45:53 +0200 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.6.12/8.6.12) with UUCP id OAA14743; Mon, 24 Jun 1996 14:45:39 +0200 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.Alpha.5/keltia-uucp-2.8) id NAA09868; Mon, 24 Jun 1996 13:25:08 +0200 (MET DST) From: Ollivier Robert Message-Id: <199606241125.NAA09868@keltia.freenix.fr> Subject: Re: 'fetch' fixes to conform HTTP standard To: ache@nagual.ru (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=) Date: Mon, 24 Jun 1996 13:25:08 +0200 (MET DST) Cc: jkh@FreeBSD.org, asami@cs.berkeley.edu, current@FreeBSD.org In-Reply-To: <199606240626.KAA00346@nagual.ru> from "[______ ______]" at "Jun 24, 96 10:26:37 am" X-Operating-System: FreeBSD 2.2-CURRENT ctm#2111 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk It seems that [______ ______] said: > return; > ! if (match (".*200.*success", s) == 0) { > /* maybe not found, or document w/o header */ > if (match (".*404.*not found", s)) { > fprintf (stderr, "%s not found\n%s\n", file_to_get, s); > --- 539,545 ---- > s[header_len] = 0; > if (len && (header_len < S)) > return; > ! if (match (".*200 +OK", s) == 0) { > /* maybe not found, or document w/o header */ I don't think it is wise to try to match anything after the return number. You could put "200 foo bar" and still conform to the RFC. Anything after the code should be ignored IMO. -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 2.2-CURRENT #11: Thu Jun 13 11:01:47 MET DST 1996