php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11352 HTTP server internal redirect
Submitted: 2001-06-08 06:18 UTC Modified: 2015-01-08 22:42 UTC
Votes:9
Avg. Score:3.9 ± 0.9
Reproduced:5 of 5 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: sgk at ppona dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: * OS: *
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: sgk at ppona dot com
New email:
PHP Version: OS:

 

 [2001-06-08 06:18 UTC] sgk at ppona dot com
(Feature request)

When using a CGI program with an HTTP server, a CGI program can cause an HTTP server to perform an internal redirect. If the output of a CGI program has a "Location:" CGI header with a virtual path (starts with '/') as a argument, a HTTP server will transmit a content of the specified virtual path without requesting a browser to access a different URL.
see <http://hoohoo.ncsa.uiuc.edu/cgi/out.html>.

This feature is missing in the PHP environment. The header() function does not process such "Location:/..." header specially as same in the CGI environment.

I have no idea about which is better to change header() function adding a few lines of C source to process such special case, or to add a new PHP function like "internal_redirect(string virtual_path)" without changing any of the behavior of existing function.

Shigeru Kanemoto
HappySize, Inc. (Japan)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-31 21:13 UTC] jani@php.net
-Package: Feature/Change Request +Package: *General Issues -Operating System: +Operating System: * -PHP Version: 4.0.5 +PHP Version: *
 [2015-01-08 22:42 UTC] ajf@php.net
-Status: Open +Status: Not a bug
 [2015-01-08 22:42 UTC] ajf@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.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This isn't really an issue with PHP, so much as an issue with HTTP servers.

Your HTTP server may offer a header for this if you look in its documentation.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 05 00:01:27 2024 UTC