Date: 12/19/00
- Next message: chrisv <email protected>: "Re: [PHP-DEV] Reply: PHP 4.0 Bug #8249 Updated: getallheaders only can get URL of the last"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] Branches on Zend and TSRM CVS trees"
- Next in thread: chrisv <email protected>: "Re: [PHP-DEV] Reply: PHP 4.0 Bug #8249 Updated: getallheaders only can get URL of the last"
- Reply: chrisv <email protected>: "Re: [PHP-DEV] Reply: PHP 4.0 Bug #8249 Updated: getallheaders only can get URL of the last"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
My program is here :
<?
if (isset($filename)) {
$headers = getallheaders();
$referer = $headers['Referer']
echo "referer=$referer<br>\n";
}
echo "<a href='$PHP_SELF?filename=good.txt'>good.txt</a>\n";
echo "<a href='$PHP_SELF?filename=bad.txt'>bad.txt</a>\n";
?>
OK, we execute it in IE 5.0,the first, i input 'http://xqee/test.php'
as the IE address, the output is :
good.txt bad.txt
Then I click the good.txt, the IE address become as:
'http://xqee/test.php?filename=good.txt' and the output like this:
referer=http://xqee/test.php
good.txt bad.txt
The last, I click the bad.txt, the IE address become as:
'http://xqee/test.php?filename=bad.txt' and the output like this:
referer=http://xqee/test.php?filename=good.txt
good.txt bad.txt
I wish it can return current referer, such as the last return:
referer=http://xqee/test.php?filename=bad.txt
And I wish it is not like the really result :
referer=http://xqee/test.php?filename=good.txt
Previous Comments:
---------------------------------------------------------------------------
ID: 8249
Updated by: stas
Reported By: erwinba <email protected>
Old-Status: Open
Status: Feedback
Bug Type: Apache related
Assigned To:
Comments:
Could you please explain more clearly what did you do, what
you expected and what was returned?
Previous Comments:
---------------------------------------------------------------------------
[2000-12-14 04:02:27] erwinba <email protected>
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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8249
===============================================
为你而建,为你而设,让你传递真心真意
---- 163.net贺卡站(http://ecard.163.net\\
163电子邮局全新奉献,精彩无限的电子贺卡站。
===============================================
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: chrisv <email protected>: "Re: [PHP-DEV] Reply: PHP 4.0 Bug #8249 Updated: getallheaders only can get URL of the last"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] Branches on Zend and TSRM CVS trees"
- Next in thread: chrisv <email protected>: "Re: [PHP-DEV] Reply: PHP 4.0 Bug #8249 Updated: getallheaders only can get URL of the last"
- Reply: chrisv <email protected>: "Re: [PHP-DEV] Reply: PHP 4.0 Bug #8249 Updated: getallheaders only can get URL of the last"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

