|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-06 06:49 UTC] sniper@php.net
[2005-02-06 17:41 UTC] florian dot gleixner at gmx dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 14:00:02 2025 UTC |
Description: ------------ I tried to add/replace HTTP headers with the header() function. I tried all examples from the manual. Even the simple redirection with "Location: ..." or "HTTP/1.0 404 Not Found" don't work. Reproduce code: --------------- <?php header("HTTP/1.0 404 Not Found"); ?> Expected result: ---------------- HTTP/1.0 404 Not Found Actual result: -------------- HTTP/1.1 200 OK Content-Type: text/html Server: Microsoft-IIS/6.0 X-Powered-By: PHP/4.3.10 MicrosoftOfficeWebServer: 5.0_Pub X-Powered-By: ASP.NET Date: Sat, 05 Feb 2005 22:53:18 GMT Connection: close