Forum Discussion
Bret_McGinnis_1
Nimbostratus
Aug 22, 2005user_agent field in the http header
I would like to use the user_agent field to determine which pool a request goes to. Is there an easy or perfered way to access the user_angent field.
I looked at the doc and searched the fo...
unRuleY_95363
Aug 25, 2005Historic F5 Account
The other common way we solve this is to simply use string tolower on the result string before doing the conditional. So, IE:
when HTTP_REQUEST {
set ua [string tolower [HTTP::header "User-Agent"]]
if { $ua contains "test" } {
pool testpool
}
}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