Forum Discussion
natethegreat_23
Nimbostratus
Jul 25, 2017iRule OR statement in URI
In my working iRule for the ASM, I am looking for a specific URI with the statement: if { [HTTP::uri] starts_with "/abc/zyx/type1/text" }
{ "do action"
} Now I would like to do the same actio...
Stanislas_Piro2
Cumulonimbus
Jul 25, 2017Hi,
you can use switch:
switch -glob -- [HTTP::path] {
"/abc/zyx/type[1-7]/text*" {
"do action"
}
}
or
switch -glob -- [HTTP::path] {
"/abc/zyx/type1/text*" -
"/abc/zyx/type2/text*" -
"/abc/zyx/type3/text*" -
"/abc/zyx/type4/text*" -
"/abc/zyx/type5/text*" -
"/abc/zyx/type6/text*" -
"/abc/zyx/type7/text*" {
"do action"
}
}
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