Forum Discussion
lunitic_56137
Aug 15, 2012Nimbostratus
Switch statement not working
I have an 11.2 deployment that is using this iRule. The issue is that the Switch statement will not work.
"when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/uri1" -
...
hooleylist
Aug 15, 2012Cirrostratus
Can you log the value of the URI and verify it's what you're expecting fo rthe URI1-4 cases? If you want to compare paths and not the full URI (path + query string = URI), you can use [HTTP::path] instead of [HTTP::uri].
Aaron
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