#31900 [Com]: Location redirects don't work, HTTP 200 instead HTTP 302
| From: | fhggfj at hg dot fd | Date: | Mon, 28 Jul 2008 19:15:55 +0000 |
| Subject: | #31900 [Com]: Location redirects don't work, HTTP 200 instead HTTP 302 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127351@lists.php.net to get a copy of this message | ||
ID: 31900
Comment by: fhggfj at hg dot fd
Reported By: rogeliotg2004 at yahoo dot es
Status: No Feedback
Bug Type: HTTP related
Operating System: Linux Mandrake 10.1
PHP Version: 4.3.10
New Comment:
http://www.forex.co.ir
forex ÝÇÑÓ ÂãæÒÔ ÝÇÑÓ
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