#33266 [Opn->Fbk]: Response header sent as 302 dispite being set to 301
ID: 33266
Updated by: sniper@php.net
Reported By: nkulbiski at ogdenpubs dot com
-Status: Open
+Status: Feedback
Bug Type: IIS related
Operating System: windows 2000
PHP Version: 5.0.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-06-07 23:40:19] nkulbiski at ogdenpubs dot com
Description:
------------
This should return a response header of 301, but sends a response
header of 302.
Reproduce code:
---------------
header("HTTP/1.1 301 Moved Permanently");
header("Location:
http://{$_SERVER['HTTP_HOST']}/library/{$redirect[0]['full_safe_name']}");
header("Connection: close");
Expected result:
----------------
I expected a response header of 301 and the page to be redirected to
the new url.
Actual result:
--------------
It did redirect to the new url but send a responce header of 302.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33266&edit=1
Thread (3 messages)