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...
Deb_Allen_18
Jan 22, 2009Historic F5 Account
Keep in mind that 404's may (typically do) include a message body containing explanatory text, which would mean content length may not be 0 for a 404. From RFC2616:All 1xx (informational), 204 (no content), and 304 (not modified) responses MUST NOT include a message-body. All other responses do include a message-body, although it MAY be of zero length.Also, if it does contain a message body, it may be sent in a chunked response, which would mean there is no Content-Length header at all.
HTH
/d
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