php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31900 Location redirects don't work, HTTP 200 instead HTTP 302
Submitted: 2005-02-09 16:36 UTC Modified: 2005-03-02 01:00 UTC
From: rogeliotg2004 at yahoo dot es Assigned:
Status: No Feedback Package: HTTP related
PHP Version: 4.3.10 OS: Linux Mandrake 10.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rogeliotg2004 at yahoo dot es
New email:
PHP Version: OS:

 

 [2005-02-09 16:36 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-28 19:15 UTC] fhggfj at hg dot fd
http://www.forex.co.ir
forex   ??ј? ????? ??ј?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 18:01:28 2024 UTC