in reply to Intermittent empty POST

The article behind the URL you posted mentions Apache::Request as a solution. Tried that one? I'm not familiar with mod_perl, but I suspect the CGI object not being properly initialized along with Connection: keepalive. I'd try setting the Connection: close header in your CGI script.

Another debugging aid would be sniffing on the network level with a tool like ethereal to see what's really getting transmitted. Can't help more in debugging since you didn't post code...

You might want to try fastcgi and CGI::Fast, which I definitely prefer over mod_perl, because the latter meddles too much with apache's internals, and fastcgi provides for a clean separation between apache and perl.

Hope that helps,
--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: Intermittent empty POST
by nmerriweather (Friar) on Jul 16, 2006 at 21:16 UTC
    mod_perl doesn't meddle with the apache internals, it hooks into the apache internals

    'meddle' has a negative connotation. it makes it sound like mp needs to do meddle with apache to get things done, when mod_perl was designed to let people script apache in perl,

    in any event, chances are you're missing post data, because of some sort of variable declaration issue. since mp is persistant, vars you create in one server request will still hang around on the next response -- unless you properly scope and delcare them

    first thing with mod_perl is to make sure you have no issues with use strict and use warnings
Re^2: Intermittent empty POST
by Anonymous Monk on Jul 16, 2006 at 21:05 UTC
    Thanks for the suggestions, I will try that, I managed to duplicate the error an ubuntu machine I develop on so can test out your suggestion. I never posted code as there are no errors showing so I have no idea what if any of my code is at fault - the error also only started happening since upgrading to Apache2/mod_perl2. I rewrote the mod_perl portions of code to be cgi and removed mod_perl2 and all works well. I will post a followup here when I get to the bottom of it.