Forum Discussion
Sumit_Singh_383
Nimbostratus
Apr 02, 2019Please help me in below iRule which is not working for me.
Hi Team, my above irule is not working. Please help me on urgent basis. I want to use this irule to identify the client browser then re-direct their request to specific pool member.
- Apr 02, 2019
Hi ,
Try this:
when HTTP_REQUEST { if { [HTTP::header User-Agent] contains "ipad" } { pool Pool-2 } elseif { [HTTP::header User-Agent] contains "Android" } { pool Pool-3 } else { pool Pool1 } }Many thanks,
Karim
Karim_Benyello1
Cirrus
Apr 02, 2019Hi ,
Try this:
when HTTP_REQUEST {
if { [HTTP::header User-Agent] contains "ipad" } {
pool Pool-2
} elseif { [HTTP::header User-Agent] contains "Android" } {
pool Pool-3
} else {
pool Pool1
}
}
Many thanks,
Karim
Karim_Benyello1
Cirrus
Apr 02, 2019Hi,
Sure, you typed "IF" while it should be "if". iRules are case sensitive.
Many thanks,
Karim
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