Re: Urgent: Apache 1.3.6 and authentication bis

From: Date: Sat, 04 Sep 1999 13:19:52 +0000
Subject: Re: Urgent: Apache 1.3.6 and authentication bis
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-10546@lists.php.net to get a copy of this message
Pierre Crevoisier wrote: > > And the server error log gives us: > ********************** > [Thu Sep 02 19:37:15 1999] [error] [client xxxxxx] malformed > header from script. Bad header=HTTP/1.0 401 Unauthorized: > d:/phpgroup/php3/php.exe > ********************** This makes it clear you're using a PHP CGI script rather than a mod_php .phtml file. Therefore, > Someone suggested us to set the folowing header > > Header("Status: 401 Unauthorized"); is the correct thing to do. CGI scripts under Apache cannot generate the protocol status line directly (unless perhaps it's an NPH script); Apache composes and sends that itself. CGI scripts tell Apache what they want the status to be by sending a "Status:" header field, as you've done above. > We finally get the popup window... without passing through... What does 'without passing through' mean? Authentication fails? If so, what's in the error log? -- #ken P-)} Ken Coar <http://Web.Golux.Com/coar/> Apache Software Foundation <http://www.apache.org/> "Apache Server for Dummies" <http://ASFD.MeepZor.Com/>

« previous php.dev (#10546) next »