|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-12-29 14:37 UTC] marc dot bau at gmx dot net
Description:
------------
This code should return a response header of 301, but sends a response header of 302.
I have tested this with PHP 5.1 and 5.2 on IIS with PHP-CGI.
Reproduce code:
---------------
<?php
header("Location: http://example.com", true, 301);
?>
Expected result:
----------------
HTTP Status Code 301
Actual result:
--------------
HTTP Status Code 302
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
Additional to this a header('HTTP/1.0 404 Not Found') produces a "404 OK".