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
With iRules you can inspect both the content and the status code to determine if you need to re-write the response to the client.
Do you have the ability to configure your web server to return a ‘503 Service Unavailable’ instead of the ‘sorry’ page? If yes, then I think you are better off checking the response status code rather than digging the content to see if there is an error. Here is an example of a rule that redirects based on a bad status code.
when HTTP_RESPONSE {
if {[HTTP::status] >= 500} {
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
