Size after compression
Hi,
I use iRule for sending Logs to external component. I want to get the size of the response after the F5 compression but unfortunately i get only the size before. i use the "content_length" header, maybe i wrong? how can i get the size after the compression?
My iRule is:
when HTTP_RESPONSE {
set pname [HTTP::header "PName"] set content_length 0 if { [HTTP::header exists "Content-Length"] } { set content_length [HTTP::header "Content-Length"] } if { [HTTP::header exists "X-AspNet-Version"] } { HTTP::header remove X-AspNet-Version }
if { [HTTP::header exists "X-Powered-By"] } {
HTTP::header remove X-Powered-By
}
HSL::send $web_hsl "<187> Response: IP=$clientip Id=$clientport Proxy=$lb_server:$lb_port H=$Host M=$Method URL=\"$URL\" R=\"$Referer\" A=\"$Agent\" Status=[HTTP::status] Size=$content_length Time_ms=[expr {[clock clicks -milliseconds] - $http_request_time}] Number=$Number UserID=$UID Ver=$Ver pname=$pname" }
thank you, Tomer.