Forum Discussion
Vishal_96707
Nimbostratus
Jan 21, 2009iRule for Response Header "content-length"
I need help with getting the "content-length" value in Response header. Basically the iRule should check for HTTP "Status" 404 and "content-length" not equal to zero.
Thanks in a...
Colin_Walker_12
Jan 22, 2009Historic F5 Account
You mean the content-length? If you just want to check the content-length header, then you'd do this:
if {!([HTTP::header "content-length"] = 0) } {
do something here...
}
This says "If the content length is not equal to zero, do something". Is that what you're looking for? This is almost identical to what hoolio posted above, except this includes the "not" operation.
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects