Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id LAA17107; Mon, 18 Aug 1997 11:11:10 -0700 (PDT) Received: from veal.organic.com (h20.n145.organic.com [204.152.145.20]) by hyperreal.org (8.8.5/8.8.5) with ESMTP id LAA17103 for ; Mon, 18 Aug 1997 11:11:07 -0700 (PDT) Received: from localhost (akosut@localhost) by veal.organic.com (8.8.3/8.6.12) with SMTP id LAA05854 for ; Mon, 18 Aug 1997 11:10:50 -0700 (PDT) X-Authentication-Warning: veal.organic.com: akosut owned process doing -bs Date: Mon, 18 Aug 1997 11:10:48 -0700 (PDT) From: Alexei Kosut To: TLOSAP Subject: Re: Location: header and CGI specy In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org On Sun, 17 Aug 1997, Dean Gaudet wrote: > Looks like a bug to me. I suspect not. Apache only deals with the Location: header if there is no Status: header. It always has, as have all the other CGI implementations that existed prior to Apache (NCSA and CERN - I don't know what more recent servers do). See, if you get headers as Marc shows, "Apache" does not return a redirect. The CGI returns a redirect. In other words, Apache does not parse Location, it does not provide a body, the CGI has to do all that. And Apache doesn't know that "/foo/" isn't a valid response for Location in whatever context the CGI is speaking to the browser. Without Status:, Apache handles the redirect for the CGI, expanding it (or doing an internal redirect), providing a body, etc... But it shouldn't do that if the CGI has told Apache it can take care of itself. > On Sun, 17 Aug 1997, Marc Slemko wrote: > > > Status: 302 goober > > Location: /foo/ > > > > then Apache returns a redirect with /foo/. That is invalid according > > to the spec, no? Apache needs to either qualify it or handle it > > internally, no? > > -- Alexei Kosut