#22666 [Com]: POST only passing a limited number of form variables
| From: | xeenych at gmail dot com | Date: | Sat, 03 Nov 2007 19:22:10 +0000 |
| Subject: | #22666 [Com]: POST only passing a limited number of form variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119259@lists.php.net to get a copy of this message | ||
ID: 22666
Comment by: xeenych at gmail dot com
Reported By: lbravo at nc dot rr dot com
Status: No Feedback
Bug Type: *General Issues
Operating System: WIndows 2000
PHP Version: 4.3.0
New Comment:
I also encountered this bug
Os: Windows XP SP2
PHP: 5.2.4-win32
The problem is the following.
I create a stream context with some (>2) form variables and issue a
POST request to a redirecting page on a remote webserver using fopen()
or file_get_contents()
Using packet sniffer i discovered, that remote webserver responds HTTP
1.1 302 found and sends location = someotherpage.php
Then, file_get_contents() follows redirect and sends another POST
request for the page someotherpage.php, but this request appears to be
trashed with some form variables from the very first request.
In best case, when there are 2 or may be 3 form variables, remote
server sends error 411 - "length required"
In worst, it sends Bad request.
Previous Comments:
------------------------------------------------------------------------
[2003-03-19 16:49:21] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-03-12 17:09:38] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-03-12 15:55:18] lbravo at nc dot rr dot com
I encountered a problem when passing about 20+ variables in the context
of form variables. The same problem occurs if using arrays in the
context of form variables. Only a certain number are passed, generally
those that appear first before the submit are passed, the exact number
seems to vary some what. I have created simple php scripts and tested
with the same results. I am not sure if the actual naming makes a
difference or not, the results seem to vary depending on how you try to
set up the test. I am very puzzled, with this behavior.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22666&edit=1