Forum Discussion
collinz1_17223
Jun 06, 2011Nimbostratus
irule active_members <1 and MSIE 7
I have an irule that returns HTML when all pool members are down, this works fine, hower what i now want to do is return different HTML if users are using IE7. It would be great to be able to return...
Colin_Walker_12
Jun 06, 2011Historic F5 Account
You'll almost certainly want to use contains, not equals, otherwise you'll have to have the entire and exact entry in the class, and that would be a pain given all the different possible user agent strings. You'll also want to be sure that you're forcing everything to either upper or lowercase for the comparison.
Something like : [class match [string tolower [HTTP::header User-Agent]] contains "msie"]
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