Bug #52351 [Opn->Bgs]: Cannot send http status code without set new header raw
| From: | rasmus@php.net | Date: | Thu, 15 Jul 2010 18:08:40 +0000 |
| Subject: | Bug #52351 [Opn->Bgs]: Cannot send http status code without set new header raw | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152442@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52351&edit=1
ID: 52351
Updated by: rasmus@php.net
Reported by: giorgio dot liscio at email dot it
Summary: Cannot send http status code without set new header
raw
-Status: Open
+Status: Bogus
Type: Bug
Package: HTTP related
Operating System: all? Windows xp x64
PHP Version: 5.3.2
New Comment:
As documented at http://php.net/header, you would do it like
this:
header("HTTP/1.0 404 Not Found");
Previous Comments:
------------------------------------------------------------------------
[2010-07-15 20:02:11] giorgio dot liscio at email dot it
Description:
------------
hi, if i want only to send an http status code in php with the function
header()
i must specify something on the first parameter otherwise the header is
not sent
i want only to set 404 status code.. but none of those works
header("", TRUE, 404);
header(NULL, TRUE, 404);
but i need to use
header("X-Totally-Useless: true", TRUE, 404);
is this a bug?
thank you
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52351&edit=1