Forum Discussion
scott_sams_8256
Nimbostratus
May 08, 2008Browser type deciscion for redirect?
We have an issue with Opera browser and our HTTP Profile. Until we get it nailed down (or in lieu of) is there a way to have an irule determine browser version and make a decision on use of an http p...
hoolio
Cirrostratus
May 08, 2008Hi Scott,
You can get the User-Agent header value using HTTP::header. To disable the HTTP profile you can use HTTP::disable. Without knowing what the issue is, it's hard to say this approach will fix the problem. But here is an example to implement the logic you've outlined.
when HTTP_REQUEST {
Check if the client is an Opera browser
if {[string tolower [HTTP::header value User-Agent]] contains "opera"}{
Disable the HTTP profile
HTTP::disable
Select an Opera-specific pool
pool opera_pool
} else {
Client isn't using Opera so enable the HTTP profile
HTTP::enable
Select the default pool
pool default_pool
}
}
Aaron
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