Forum Discussion
May 25, 2007
If it's HTTP, then you can likely use the Content-Length header that the browser and server send to indicate the total length of the upcoming payload.
when HTTP_REQUEST {
set request_length [HTTP::header "Content-Length"]
}
when HTTP_RESPONSE {
log local0. "Request Size: $request_length, Response Size: [HTTP::header Content-Length]"
}
-Joe