Forum Moderators: phranque

Message Too Old, No Replies

Form Size and XP

Unable to receive more than 8k of data

         

DevilsInSix

1:35 am on Mar 17, 2004 (gmt 0)

10+ Year Member



Hello... I'm am praying that someone can help me out. I have:
- ActiveState perl 5.6.1
- Apache 1.3.22
- Windows XP
I have written a CGI script (below) that creates a form with 200 text fields, each with a value of length 100 bytes. When I submit the form, the script reads the incoming data and prints to screen.
My problem: I am unable to get back more than the first 8k of data. This script works on UNIX and Windows 2000. It seems to work with different Web servers.
Why, why, why can't I see all the data in XP?
FYI, I also have the following values set in httpd.conf:
LimitRequestBody 2147483647
LimitRequestFields 5000
I have made a single change to CGI.pm -- disabling file uploads.

If the moderator wishes to move this post to another forum, I'd like to request that you copy it there instead of moving it entirely. I'm really at wits' end trying to find a solution.

Thanks to any and all who look into this problem.


#!C:\perl\bin\perl -w
use CGI;
use strict;
#$¦ = 1;
my $query = new CGI;
print $query->header("text/html");
print "<html><body>\n";
#print out the text fields that were submitted via the form.
for my $val ($query->param)
{
my $ct = 1;
print "<BR>submitted $val: ";
foreach ($query->param($val))
{
print "<BR>$ct [" . $query->param($val) . "]\n";
$ct += 1;
}
}

print "<form name=frmSize method=Post>\n";
#Create 200 text fields
for (my $i = 0; $i < 200; $i++)
{
#Create a text field with 100 bytes of data
print "<BR>input box $i:<input type=text size=110 name=\"x\" value=\"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\">\n";
}

print "<BR><input type=submit></form>\n";
print "</body></html>\n";

exit 0;

closed

4:07 am on Mar 17, 2004 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld, DevilsInSix!

Well, if you do plan on posting in another forum, you should probably try posting your problem in the Perl CGI forum [webmasterworld.com].

lemat

11:06 pm on Mar 17, 2004 (gmt 0)

10+ Year Member



1) have you named each input type=text with name "x"?
try name it x1, x2, x3... or x[1]...

2) maybe it's not the server but the browser problem -> have you used alternate one, for eg Mozilla, Opera?

DevilsInSix

3:44 am on Mar 18, 2004 (gmt 0)

10+ Year Member



I did name each field with the same name -- x. I had originally named each variable x_n, where n is a unique integer (0,1,2, etc). But the results were the same. I have not tried another browser -- don't even have one installed here -- but that's a good idea; I'll try it. Any other suggestions?
Thanks.

DevilsInSix

4:03 am on Mar 18, 2004 (gmt 0)

10+ Year Member



I just did try this in Netscape. No dice. I suspect it must be on the Apache or perl (CGI.pm) side. But I haven't the faintest idea what's causing the problem.