php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28302 header interpretation problem
Submitted: 2004-05-06 17:40 UTC Modified: 2004-05-06 22:35 UTC
From: harshit at oinka dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.5 OS: Windows 2000 Professional
Private report: No CVE-ID: None
 [2004-05-06 17:40 UTC] harshit at oinka dot com
Description:
------------
I was using the header function to create a redirect using the "Location" HTTP header. It seems that Apache is sensitive about the syntax of the header sent.
In the general format <header-name>: <header value> there must be no space between the <header-name> and the proceeding ":" (colon). 

eg. header("Location : www.somesite.php");

Somehow any spaces between the two doesn't allow the header to be interpreted properly under Apache (1.xx) and as a result it does not produce the desired result (redirection in my case) but it works out fine on IIS 5.0
I spent an hour trying to debug this, hope someone will benefit from this.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-06 22:35 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 20:01:32 2024 UTC