Date: Mon, 24 Jun 1996 13:25:08 +0200 (MET DST) From: Ollivier Robert <roberto@keltia.freenix.fr> To: ache@nagual.ru (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=) Cc: jkh@FreeBSD.org, asami@cs.berkeley.edu, current@FreeBSD.org Subject: Re: 'fetch' fixes to conform HTTP standard Message-ID: <199606241125.NAA09868@keltia.freenix.fr> In-Reply-To: <199606240626.KAA00346@nagual.ru> from "[______ ______]" at "Jun 24, 96 10:26:37 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606241125.NAA09868>