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...
Colin_Walker_12
Aug 25, 2005Historic F5 Account
Hmm, that sounds a bit odd. Have you tried using string match? The syntax looks like this:
string match -nocase $string
So in your case it'd be something like:
when HTTP_REQUEST {
if {[string match -nocase "test" [HTTP::header "User-Agent"]]} {
pool testpool
}
}Give that a try...
-Colin
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