After upgrading to Apache2 with modperl2 I have found that a CGI script I have used without any trouble for years intermittently loses the POST data.

The sometimes takes 10 minutes of using the script to get the anomaly, I say anomaly as there is no error messages in the Web server log and the perl script executes without error simply outputting the login screen as no POST data gets through, refreshing the browser once or twice will result in the POST data making it to the script as it should have done in the first place.

After allot of googling there seems to be a quite few 'missing POST data' results, some are related to older CGI.pm modules, however I have the very latest CGI.pm 3.20 , installed to try and fix the problem with no luck, other results vaguely mentioned CGI.pm and modperl2 not playing nicely like this article

http://aspn.activestate.com/ASPN/Mail/Message/modperl/1871810

which says "something is funky with the way that CGI.pm is initialising itself under mod_perl" which isnt much help.

There seems to be no answer or fix for this. I run Debian Stable, Apache 2, Modperl2 (not 1.99*) and the script is CGI not mod_perl

Hopefully one of the wise monks can help me out otherwise I am going to have to downgrade my server and/or rewite allot of code.


In reply to Intermittent empty POST by lobo_nz

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.