Forum Discussion
hooleylist
Sep 19, 2011Cirrostratus
Nice one Michael. You could also set the User-Agent header to lower case to avoid case issues:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::header User-Agent]] {
"*msie*" { do something }
"*firefox*" { do something }
"*chrome*" { do something }
default {
log local0. "Unhandled User Agent: [HTTP::header User-Agent]"
}
}
}
Aaron