Re: PHP4 sends wrong headers?

From: Date: Mon, 06 Mar 2000 19:05:53 +0000
Subject: Re: PHP4 sends wrong headers?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-16468@lists.php.net to get a copy of this message
On Mon, 6 Mar 2000, Ryan Morgan wrote: > HTTP/1.1 200 OK > Date: Mon, 06 Mar 2000 18:01:00 GMT > Server: Apache/1.3.6 PHP/4.0b3 > WWW-Authenticate: Basic realm="My Realm" > Connection: close > Content-Type: text/html > > But shouldnt the Authorization Required header be sent? It should look like > the following: > > HTTP/1.1 401 Authorization Required > Date: Mon, 06 Mar 2000 18:12:37 GMT > Server: Apache/1.3.6 PHP/4.0b3 > WWW-Authenticate: Basic realm="My Realm" > Connection: close > Content-Type: text/html > > Am I just doing something wrong here, or is this a bug in PHP4? Sorry that > I'm still stuck with using the Beta3 release, but Beta4 will not compile run > on my machine. See bug #3589 I have noticed this behavior in the past, dealing with ErrorDocuments that are PHP scripts (and, as far as I know, it's still a "problem") - When apache parses a PHP script as ErrorDocument, it returns a "200 OK" instead of 401/403/404/500 - the workaround I used (at the time), was to force the header in the ErrorDocument - BUT this isn't the right solution to the problem... As for _why_ apache returns a 200 instead of the proper HTTP code, I don't know. -- Dominic J. Eidson "Baruk Khazad! Khazad ai-menu!" - Gimli ------------------------------------------------------------------------------- http://www.the-infinite.org/ http://www.the-infinite.org/~dominic/

« previous php.dev (#16468) next »