note 53799 added to reserved.variables
| From: | xangelusx at hotmail dot com | Date: | Mon, 13 Jun 2005 20:03:16 +0000 |
| Subject: | note 53799 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90372@lists.php.net to get a copy of this message | ||
A note about the QUERY_STRING variable when using IIS:
I have found that IIS does not handle large query strings gracefully when passed from PHP. In
addition to truncating them to around 1024 kb, I have seen IIS actually add data from other server
variables to the end of the truncated data.
This occurred on Windows 2000 server running IIS 5.0 and PHP 4.3.8. The problem did not occur when
handled by Apache, even on another Windows server.
Note: I realize passing this much data is best accomplished using the POST method, which would avoid
this problem all together. I'm merely detailing a problem that I came across.
I have created a page that includes the (very long) query string that was used and some of the
results that I saw while testing. It can be viewed at http://www.csb7.com/test/php_iis_qs_limit/. I
didn't want to include it here as it would stretch the page out significantly.
~Chris Bloom
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53799
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53799&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53799&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53799&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53799&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53799&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53799&report=yes
Search -- http://master.php.net/manage/user-notes.php