#31900 [Opn->Fbk]: Location redirects don't work, HTTP 200 instead HTTP 302
| From: | sniper@php.net | Date: | Thu, 10 Feb 2005 13:31:12 +0000 |
| Subject: | #31900 [Opn->Fbk]: Location redirects don't work, HTTP 200 instead HTTP 302 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73747@lists.php.net to get a copy of this message | ||
ID: 31900
Updated by: sniper@php.net
Reported By: rogeliotg2004 at yahoo dot es
-Status: Open
+Status: Feedback
-Bug Type: Output Control
+Bug Type: HTTP related
Operating System: Linux Mandrake 10.1
PHP Version: 4.3.10
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-02-09 16:36:04] rogeliotg2004 at yahoo dot es
Description:
------------
I have apache 2.0.50 on linux mandrake 10.1. I had php 4.3.8, now I've
installed 4.3.10 by urpmi.
Then I got the mentioned problem, when I use header("location: ...),
the header is sended in the response, but the HTTP 302 sended in 4.3.8
is now a HTTP 200.
Try whatever script that you want, with a location like a full or
relative URL.
Best Regards,
Reproduce code:
---------------
<?
header("location: www.google.com");
die;
?>
Expected result:
----------------
HTTP/1.x 302 found
Location: www.google.com
...more headers
Actual result:
--------------
HTTP/1.x 200 OK
Location: www.google.com
...more headers
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31900&edit=1