note 85389 added to function.header

From: Date: Thu, 28 Aug 2008 08:23:04 +0000
Subject: note 85389 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-143908@lists.php.net to get a copy of this message
Issuing a 200 OK status in what might be the expected way doesn't necessarily work. I needed to override a 404 status with a 200 status in a custom error document. <?php header("HTTP/1.0 200 OK"); // doesn't work (at least for me) ?> <?php header("Status: 200 OK"); // does work ?> All examples I could find would use the first method which wouldn't work even with the /replace/ and /http_response_code/ parameters set. This was under Linux, PHP 5.2.2, Apache 1.3.39. ---- Server IP: 92.48.100.16 Probable Submitter: 62.56.72.80 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/85389 Del: integrated -- https://master.php.net/note/delete/85389/integrated Del: useless -- https://master.php.net/note/delete/85389/useless Del: bad code -- https://master.php.net/note/delete/85389/bad+code Del: spam -- https://master.php.net/note/delete/85389/spam Del: non-english -- https://master.php.net/note/delete/85389/non-english Del: in docs -- https://master.php.net/note/delete/85389/in+docs Del: other reasons-- https://master.php.net/note/delete/85389 Reject -- https://master.php.net/note/reject/85389 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143908) next »