Forum Discussion
Robert_47833
Nov 14, 2011Altostratus
how to use switch to match datagroup
1:there is a datagroup:cjj
how to use switch to match this group
switch -glob [HTTP::path] {
"cjj" xxxx ???
2:
switch -glob [HTTP::path] { "*jpg" - "*bmp" - ...
Robert_47833
Nov 15, 2011Altostratus
oh,I got u
so for example :
switch -glob [HTTP::path] {
"*gif" -
"*png" {
switch -glob [HTTP::path] {
"/static.*" -
"/s.*" {
switch -glob [HTTP::path] {
"*cswebtool*" -
"*cobrands*" {
persist none
pool SRWD52-STATIC
return
}
}
}
}
}
in this case ,I can save the output of HTTP::path to a variable,right? because I run [HTTP::path] 3 times
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