#26068 [Opn->Bgs]: referrer uri missing arguments
by other posts by this author
Nov 2 2003 7:23PM messages near this date
#26068 [NEW]: referrer uri missing arguments
|
[PHP-DEV] [PHP-Internals] 64 bit int support
ID: 26068
Updated by: iliaa@[...].net
Reported By: sanondysie at tc17 dot com
-Status: Open
+Status: Bogus
Bug Type: HTTP related
Operating System: Windows 98
PHP Version: 4.3.4RC3
New Comment:
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.
JavaScript is not from the server, it is run from the host browser. If
the webserver internally modified the HTTP_REFERER header, the
JavaScript would not reflect this change in any way.
Previous Comments:
------------------------------------------------------------------------
[2003-11-01 17:31:18] sanondysie at tc17 dot com
Sorry but that is exactly and precisely why the Javascript is there in
the example that I expended the time and energy to produce. If the http
server had stripped argument then Javascript would __NOT__ have been
able to see it... but it __DOES__, in fact, see the argument;
therefore, the http server is, indeed delivering all the goods. PHP
otoh does not report the argument, once again, presumably only on
Windows platform(s).
------------------------------------------------------------------------
[2003-11-01 15:22:50] iliaa@[...].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 does not modify the HTTP_REFERER field, what the browser sends is
what you get. If you don't it means the webserver had applied some
filtering.
------------------------------------------------------------------------
[2003-11-01 12:50:21] sanondysie at tc17 dot com
Description:
------------
This appears to be Windows 98 (all Win32??) only; it works on Linux.
The problem is that the referrer uri is missing any arguments that
might have been appended. For the attached sample, you need to Submit
at least twice to see the problem. This was tested with an Xitami HTTP
server.
Reproduce code:
---------------
<html>
<head/>
<body>
<p>
Referrer:<br/>
<table>
<tr>
<td>
PHP:
</td>
<td>
<?PHP print $_SERVER ["HTTP_REFERER"]; ?>
</td>
</tr>
<tr>
<td>
Javascript:
</td>
<td>
<script> document.write (document.referrer);</script>
</td>
</tr>
</table>
</p>
<form action= "<?php print $_SERVER ["SCRIPT_NAME"]; ?> "
method= "get">
<input type= "hidden"
name= "param"
value= "value">
<input type= "submit">
</form>
</body>
</html>
Expected result:
----------------
Both referrers should be identical. You need to click Submit twice to
get a referrer supplying arguments.
Actual result:
--------------
PHP will show arguments missing.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26068&edit=1
Thread:
sanondysie at tc17 dot com
|