Forum Discussion
Craig_Hammer_10
Nimbostratus
Jul 21, 2005Failing to match URI in SWITCH statment
When using this rule, I never seem to match the first two evaluation steps:
when HTTP_REQUEST {
switch { [HTTP::uri] starts_with } {
"/argo/tcc" {
use pool one
}
"/ar...
Craig_Hammer_10
Nimbostratus
Jul 21, 2005unRuleY,
You're right on, using glob fixed the problem. In the meantime, I was using an if-elseif-else with the "starts_with" syntax which worked also.
Do you know whether if-elseif (nested if) or switch (case) is more efficient using the TCL interpreter on v9 ?
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
