Forum Discussion
AjayPra_161698
Nimbostratus
Jul 27, 2015Irule not matching the user-agent string "ms search"
Hi all,
I have following iRule configured on LTM.
when HTTP_REQUEST {
set uagent [string tolower [HTTP::header User-Agent]]
if { $uagent contains "ms search"} {
pool pool-A
} else {
pool pool-B...
Michael_Jenkins
Cirrostratus
Jul 27, 2015try adding some logging to see what's coming though and see if that gives any indication. Something like this:
when HTTP_REQUEST {
set uagent [string tolower [HTTP::header User-Agent]]
log local0. "UA: '${uagent}'"
if { $uagent contains "ms search"} {
log local0. " No match"
pool pool-A
} else {
log local0. " Match found"
pool pool-B
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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