Forum Discussion
jdam_41848
Altocumulus
Dec 17, 2014nested if iRule
Hi, I am trying to develop an iRule that will flow through several conditions, breaking out as soon as a condition is false to make it efficient. It doesn't seem to be working but not sure why.
...
nitass
Employee
Dec 20, 2014can you try something like this?
[root@ve11a:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
if { [HTTP::method] equals "POST" } {
if { [HTTP::uri] contains "/URI-In-Question/" } {
HTTP::collect 100
} else {
Stop processing
return
}
} else {
Stop processing
return
}
}
when HTTP_REQUEST_DATA {
if { not ([HTTP::payload 100] contains "keyword") } {
Reject
reject
}
}
}
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