Brian_Kenworthy
Oct 03, 2006Nimbostratus
Inspect URI without Case Senstivity?
Hello all,
I have created the following rule to redirect traffic based on the URI to another pool, however, I want the rule to ignore case sensitvity within the URI string. Here is my rule:
when HTTP_REQUEST {
set uri [HTTP::uri]
if { $uri matches_regex "/_xml/ORS/status.asp*" }{
pool mypool_B2B_SSL
} else {
pool mypool.com_SSL
}
}
If I browse using the exact snytax, everything works fine, but it I use a lower case "ors", it fails i.e. https://mydomain/_xml/ors/status.asp I want the rule to fire on any case change that a user puts into the string.
Thanks in advance for the help.
Brian