|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-20 12:04 UTC] derick@php.net
[2004-12-20 12:25 UTC] pnewman at wanadoo dot nl
[2004-12-20 13:30 UTC] derick@php.net
[2004-12-20 17:44 UTC] iliaa@php.net
[2004-12-22 14:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
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