On Fri, Aug 6, 2010 at 3:55 AM, Jeff Trawick <trawick@xxxxxxxxx> wrote: > On Fri, Aug 6, 2010 at 2:50 AM, Timothy Partee <timothy.partee@xxxxxxxxx> wrote: >> Basically what's happening is I have a small horde of Perl (not >> mod_perl, just plain Perl) scripts which use the CGI.pm 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:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx