On Thu, 29 Jun 2000, Scott Alexander wrote:
> I'm trying to get the data that is posted from the browser durring a
> request.
>
> if ($r->method ne 'GET')
> {
> $r->read($buffer,$r->header_in('Content-Length'));
> #proccess data...
> }
>
> The $r->read() hangs the request completely. I ran an strace on
that normally happens because somebody already read the POST body. are
you still having this problem? the best way to figure out who is doing
this would be to use gdb:
% gdb httpd
(gdb) b ap_get_client_block
(gdb) source mod_perl-x.xx/.gdbinit
(gdb) run -X
now make a request:
(gdb) curinfo
should show the current Perl filename:linenumber
continue:
(gdb) c
and use curinfo the next time the breakpoint is hit.