Forum Discussion
htuytela_37346
Dec 13, 2013Nimbostratus
thank you for the reply, unfortunately, this did not help. I'm progressing slowly, as the suggestion on using the switch syntax made me try this :
when HTTP_REQUEST {
switch -glob [HTTP::header value "User-Agent"] {
"*MSIE 6*" -
"*MSIE 7*" -
"*MSIE 8*" {
switch -glob [HTTP::cookie exists "test"] ne ""
HTTP::redirect "http://test-lab.foo.com:9610/CG510_APR_RedirectCapriURL/"}
default {
pool site-10.130.14.98_29710
}
}
}
This rule is accepted and there is a difference in testing using IE & Mozilla, so the browser selection seems to work. I enabled cooking persistence on the VS with a cookie named test. However, that did not help. To me, it looks like the iRule is not able to read the cookie.
regards,
Hans