List Info

Thread: mod_cgid not able to handle large POST request




mod_cgid not able to handle large POST request
user name
2006-03-31 09:36:45
Hi,

On using mod_cgid to handle large POST request i get a page not found error. This is what I did.
Have a HTML which generates a huge POST request and the action is taken by a cgi-script which just checks the size of the request.

The html is
<html>
<body>
Click TEST for doing POST data!<p>

<;form method=&quot;POST&quot; action=&quot;http://server.com/cgi-bin/test3.cgi"&gt;
POST_DATA <input type=";text" name=";userid&quot; value=&quot;111111111111111111111111111111111111111111111"&gt;

<br>
<input type=";hidden&quot; name=";action&quot; value=&quot;submit&quot;>
&lt;input type=";button&quot; value=&quot;TEST"; onClick=&quot;this.disabled=true; this.form.submit();&quot;>

</form&gt;
</body>
&lt;/html>

The test3.cgi is
#!/usr/bin/perl
$|++;

print "Content-type: text/html\n\n";
if ($ENV{CONTENT_LENGTH} > 2048) {
 &nbsp;  print "Too much!\n&quot;;
} else {
 &nbsp;  print "OK\n";
}

With this set up the script displays OK. But when the number of 1's in the html is increased to a very huge number then I get a page not found error. I do not find this error with mod_cgi though. Has this been noticed before.

Regards,
Pradeep
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )