The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HTML form with lots of data submitted causing error

Discussion in 'General Discussion' started by rogergraves, Jul 12, 2005.

  1. rogergraves

    rogergraves Member

    Joined:
    Dec 29, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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
     
Loading...

Share This Page