Re: [cgiwrap-users] php-cgiwrap won't process authentication headers...
Brought to you by:
nneul
From: Daniel L. <da...@lo...> - 2002-05-01 08:13:00
|
Hi, your php-cgiwrap is alright. This is a limitation of PHP running in CGI-mode. Use 'Status:' to make it work: $realm = "Restricted"; header("WWW-authenticate: basic realm=\"$realm\"") ; header("Status: 401 Unauthorized"); Daniel Lorch http://daniel.lorch.cc/ ----- Original Message ----- From : jeff bert [mailto:soi...@sg...] Sent : Mittwoch, 1. Mai 2002 Subject: [cgiwrap-users] php-cgiwrap won't process authentication headers... > my install of php-cgiwrap won't process authentication headers... called > like this: > $realm = "Restricted"; > header("WWW-authenticate: basic realm=\"$realm\"") ; > header("HTTP/1.0 401 Unauthorized") ; > Do I have a funky setup or is this a limitation of php-cgiwrap? > The error log shows: > [Tue Apr 30 18:31:43 2002] [error] [client:xx.xx.xx.xx] malformed header > from script. Bad header=HTTP/1.0 401 Unauthorized: > /var/www/cgi-sys/php-cgiwrap > Thanks, > Jeff |