php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8249 getallheaders only can get URL of the last
Submitted: 2000-12-14 04:02 UTC Modified: 2000-12-21 05:28 UTC
From: erwinba at 163 dot net Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3 OS: Linux
Private report: No CVE-ID: None
 [2000-12-14 04:02 UTC] erwinba at 163 dot net
The "getallheaders" function cannot get the current URL
list, it get the last access 'Referer' only.

such as, access the test.php page by 
  http://myserver/php/test.php?parameter=value
then access the process.php page by
  http://myserver/php/process.php?page=value
on my process.php page, I use getallheaders() function,
but this 'Referer' is returned : test.php?parameter=value.

Of course, I want the current Referer is returned.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-17 10:49 UTC] stas@php.net
Could you please explain more clearly what did you do, what
you expected and what was returned?
 [2000-12-21 05:28 UTC] sniper@php.net
You have only misunderstood 'referer'.
Referer is the page you are 'coming' from.
NOT the page you're going to. 

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 17:01:31 2024 UTC