#31900 [Fbk->NoF]: Location redirects don't work, HTTP 200 instead HTTP 302
| From: | php-bugs at lists dot php dot net | Date: | Wed, 02 Mar 2005 00:00:11 +0000 |
| Subject: | #31900 [Fbk->NoF]: Location redirects don't work, HTTP 200 instead HTTP 302 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74757@lists.php.net to get a copy of this message | ||
ID: 31900
Updated by: php-bugs@lists.php.net
Reported By: rogeliotg2004 at yahoo dot es
-Status: Feedback
+Status: No Feedback
Bug Type: HTTP related
Operating System: Linux Mandrake 10.1
PHP Version: 4.3.10
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2005-02-10 14:31:11] sniper@php.net
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
------------------------------------------------------------------------
[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