Is there an equivalent of Apache::RequestRec::bytes_sent for the size of the
incoming request? (I have a situation where I need to log the size of the
data transfer each way to a db). I've searched through the docs (and google)
and not found anything.
The closest I've found to getting this is
Malcolm J Harwood wrote:
Is there an equivalent of Apache::RequestRec::bytes_sent for the size of the
incoming request? (I have a situation where I need to log the size of the
data transfer each way to a db). I've searched through the docs (and google)
and not found anything.
The closest I've
Stas Bekman wrote:
Malcolm J Harwood wrote:
Is there an equivalent of Apache::RequestRec::bytes_sent for the size
of the incoming request? (I have a situation where I need to log the
size of the data transfer each way to a db). I've searched through the
docs (and google) and not found
[...]
I think what Malcolm is after is the size of the initial request, message
body, headers, and all, which there just doesn't seem to be an easy way to
get to.
[...]
you might be able to glean the size from a combination of $r-the_request,
$r-headers_in, and $r-content_length.
I see. That
Malcolm J Harwood wrote:
I see. That should be relatively use to calculate with modperl2's input
connection filter (not w/o a small overhead of course):
http://perl.apache.org/docs/2.0/user/handlers/filters.html#Connection_Input
_Filters
Assuming I've understood the docs, something like:
sub