No real idea here, but depending on where you are testing from, it could be an instance of the old 'broken Path-MTU-discovery.'

Basically, if there is a (broken) firewall between your client and the server which is dropping all ICMP packets, one symptom you can see is small transfers working fine but larger transfers failing. (The client TCP tries to determine the optimum packet size by increasing the size until it receives an 'I had to fragment your packet' ICMP message...if this doesn't get back to the sender the data gets discarded :-(

You can try searching networking archives and such or your system documentation. If you can disable path-mtu-discovery on the client and that helps then go and beat up a firewall admin.

Other than that, does the script work fine if you run from the command line? i.e. does perl my_script.pl < form_parameters work OK?

If not, and you can reproduce the problem this way, then all I can suggest is 'perl -d'.

Let us know how you get on.


In reply to Re: CGI cut off after about 16000 characters by jbert
in thread CGI cut off after about 16000 characters by BrentDax

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.