httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject Re: [users@httpd] Apache/Perl CGI intermittent missing POST data
Date Fri, 06 Aug 2010 10:55:48 GMT
On Fri, Aug 6, 2010 at 2:50 AM, Timothy Partee <> wrote:
>   Basically what's happening is I have a small horde of Perl (not
> mod_perl, just plain Perl) scripts which use the module to
> parse out incoming CGI parameters and cookies, and about 2% of the
> time when I get the POST data params from CGI they are a completely
> empty collection. I can consistently reproduce this with a simple POST
> form page to a simple Perl CGI script which dumps a set of static form
> data (as in the form fields are hidden and therefore no data entry is
> needed so I can just hit the submit button over and over again for
> rapid testing) to the browser. Everything runs fine, no errors on the
> server being reported, no error in the Perl script reported, just a
> blank params collection about 2% of the time, seemingly completely at
> random. Under high load and under low load there seems to be no
> difference.

First, confirm exactly what the browser is sending when you encounter
the problem symptom:

a) Content-Length non-zero + POST data
b) Content-Length zero
c) Content-Length non-zero but no post data (we'd expect the web
server to wait for Timeout seconds before giving up on the POST data)

You can easily log the incoming Content-Length in the access log.  You
can log the incoming headers/POST data with mod_dumpio.  You can step
outside of the web server process itself and use a packet trace tool
such as Wireshark.  You can use something like the ieHttpHeaders
plug-in for IE, or equivalent for Firefox, to see the perspective of
the browser process.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message