HTML form with lots of data submitted causing error

rogergraves

Member
Dec 29, 2004
5
0
151
One of my websites is getting an "Internal Server Error" whenever the end user tries to submit an HTML form with a lot of data (6k or more) to a Perl script. It is submitting via "post" since that much data is too long for a "get" style submission. When taking a look at the error log I get the following:

Premature end of script headers: /home/siteid/public_html/cgi-bin/scriptname.pl


OK, here is the funny part -- the data that is submitted appears to go through OK despite the error. It gets saved properly, it's only the return HTML coming from the script that gets cut off and instead, shown the Internal Server Error message.

In the perl script I tried doing a use CGI::Carp 'fatalsToBrowser'; and it didn't do anything (same Internal Server Error message). I've also tried with and without the use of the CGI module. The perl script works fine when there is less data submitted to it, it's only when it gets into the 6k range.

Any help will be appreciated!
Thanks,
~Roger