One more detail. I get this error only on commenting out the Scriptsock directive. When I use this directive though I have no trouble in running the script.

Regards,
Pradeep

On 3/31/06, pradeep kumar <[EMAIL PROTECTED]> wrote:
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="POST" action="" href="http://server.com/cgi-bin/test3.cgi" target="_blank" >http://server.com/cgi-bin/test3.cgi">
POST_DATA <input type="text" name="userid" value="111111111111111111111111111111111111111111111">

<br>
<input type="hidden" name="action" value="submit">
<input type="button" value="TEST" this.form.submit();">

</form>
</body>
</html>

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

print "Content-type: text/html\n\n";
if ($ENV{CONTENT_LENGTH} > 2048) {
    print "Too much!\n";
} else {
    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

Reply via email to