php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3884 PHP4 CGI sends wrong headers with my SSL server
Submitted: 2000-03-20 23:42 UTC Modified: 2000-07-04 10:50 UTC
From: ajung at sz-sb dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Solaris 2.7
Private report: No CVE-ID: None
 [2000-03-20 23:42 UTC] ajung at sz-sb dot de
I tried to use the example script from the documentation
for basic authen. with my CGI version of PHP4 under Apache 1.3.12/SSL:

<?
    header("WWW-Authenticate: Basic realm=\"My Realm\"");
    header("HTTP/1.0 401 Unauthorized");
    header("pragma: no-cache");
    echo "Text to send if user hits Cancel button\n";
    exit();
?>

Always the Apache server responses with a 500 internal 
server error. Excerpt from the script log:

%% [Tue Mar 21 05:41:21 2000] GET /cgi-bin/php4/kunden/index.php3 HTTP/1.0
%% 500 /home/secprint/www/apache/cgi-bin/php4
%request
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Charset: iso-8859-1,*,utf-8
Accept-Encoding: gzip
Accept-Language: de
Connection: Keep-Alive
Host: milliways:8443
Pragma: no-cache
User-Agent: Mozilla/4.7 [de] (Win98; U)
%response
HTTP/1.0 401 Unauthorized
%stdout
X-Powered-By: PHP/4.0b4pl1
WWW-Authenticate: Basic realm="My Realm"
pragma: no-cache
Content-Type: text/html

Text to send if user hits Cancel button




Excerpt from the error_log:
[Tue Mar 21 05:41:21 2000] [error] [client 212.88.192.10] malformed header from
script. Bad header=HTTP/1.0 401 Unauthorized: /home/secprint/www/apache/cgi-bin/
php4


I have no idea where the problem is......any idea ?!

Andreas Jung

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-10 02:21 UTC] zeev at cvs dot php dot net
Does the problem persist with PHP 4.0.0 release?
Does it have anything to do with the SSL module?  I.e., does it go away if you don't compile the SSL support in?
 [2000-07-04 10:50 UTC] stas at cvs dot php dot net
no user feedback
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 19:01:32 2024 UTC