Forum Discussion
Brandon_Mason_3
Nimbostratus
Aug 24, 2006iRule for HTTP Response
If anyone could help us with a few examples of how to write an iRule to meet this requirement it would be greatly appreciated.
Here’s a rough requirement summary:
For an incoming h...
Deb_Allen_18
Aug 25, 2006Historic F5 Account
The rule logic would be something like this:
when RULE_INIT {
set ::timeout 5 ; seconds
}
when HTTP_REQUEST {
set reqTime [clock seconds]
}
when HTTP_RESPONSE {
if {not ([HTTP::status] == 200) or \
[clock seconds] > [expr $reqTime + $::timeout]}{
HTTP::respond ...
}
}
}where the response is imbedded in the code with the HTTP::respond command as discussed here: http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=9523Click hereHTH
/deb
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