httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ursa Polaris <>
Subject Re: [users@httpd] Apache/Perl CGI intermittent missing POST data
Date Fri, 06 Aug 2010 16:40:28 GMT
On Fri, Aug 6, 2010 at 3:55 AM, Jeff Trawick <> wrote:
> 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.

   Ah yes, I forgot to mention I had already used Firebug and
Wireshark to confirm that the browsers are correctly sending the POST
data to the server 100% of the time. I'll try to look into mod_dumpio
today and see if I can figure out how to use it to help trace what's
going on. Thanks,

- Tim Partee

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