Forum Discussion
Brian_Ott_11267
Nimbostratus
Dec 06, 2004http::payload
Can I use http:payload to evaluate the data sent to the client and then cause an action?
Such as, the client is sent a busy page, but instead of being sent the busy page the f5 box catc...
bl0ndie_127134
Dec 06, 2004Historic F5 Account
Here is an example for inspecting the content.
when HTTP_RESPONSE {
Collect data for inspection
set clen [HTTP::header Content-Length]
if {$clen > 0} {
HTTP::collect $clen
}
}
when HTTP_RESPONSE_DATA {
Check for ‘sorry’ data in the payload
set found [string first “sorry.gif” [HTTP::payload $clen] ]
Redirect
if {$found != -1 } {
HTTP::redirect “http://www.sorry-server.com”
}
}
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
