ID:               31197
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pnewman at wanadoo dot nl
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: fedora core 2 (linux)
 PHP Version:      4.3.8
 New Comment:

Perhaps Apache mangles headers, did you try apache 1? If not, please
try it.


Previous Comments:
------------------------------------------------------------------------

[2004-12-20 11:58:49] pnewman at wanadoo dot nl

Description:
------------
Hi

I am scratching my head about this.

Nothing I can do can get the Content-Length to output - I have tried
using ob_start to use a buffer inorder to calculate the exact number of
characters but even a script this simple does not work?

Regards,
Peter.

Reproduce code:
---------------
<?php
header('Content-Length: 48');
?>
<html>
<body>
<p>hi</p>
</body>
</html>

Expected result:
----------------
HTTP/1.1 200 OK
Date: Mon, 20 Dec 2004 10:56:30 GMT
Server: Apache/2.0.51 (Fedora)
X-Powered-By: PHP/4.3.8
Content-Length: 48
Connection: close
Content-Type: text/html; charset=UTF-8


Actual result:
--------------
lynx -head -dump http://localhost/test3.php returns

HTTP/1.1 200 OK
Date: Mon, 20 Dec 2004 10:54:23 GMT
Server: Apache/2.0.51 (Fedora)
X-Powered-By: PHP/4.3.8
Connection: close
Content-Type: text/html; charset=UTF-8



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31197&edit=1

Reply via email to