Forum Discussion

DP's avatar
DP
Icon for Nimbostratus rankNimbostratus
Mar 12, 2013

Content length after compression

Hi.

 

Does anyone know of a way to get HTTP content length after compression has been completed?

 

We're running Big-IP 10.2.4 currently and the HTTP_RESPONSE event gives the uncompressed size of an object from the pool member by reading the HTTP Content-Length header.

 

With Big-IP 11.x there's a HTTP_RESPONSE_RELEASE event which I think would do the job but unfortunately we're not running that release.

 

It's for bandwidth monitoring of content types and sizes.

 

Cheers.

 

  • is vip-to-vip helpful? the solution is for asm but concept is same.

     

     

    sol9388: Using an iRule to parse post-ASM responses (9.4.x - 10.x)

     

    https://support.f5.com/kb/en-us/solutions/public/9000/300/sol9388.html?sr=27975946
  • As Nitass says, until you get to v11, VIP-targeting is probably you're best bet.

    
     Outer VIP:
    when HTTP_REQUEST {
    virtual internal.vip.vs
    }
    when HTTP_RESPONSE {
    log local0. [HTTP::header Content-Length]
    }