Forum Discussion
Raj_Zucre_Ramir
Nimbostratus
Apr 13, 2010HTTP::header "User-Agent"
Hi guys,
I'm using this irule, but got an error:
if {[class match [HTTP::header "User-Agent"] contains "Acre_UserAgent"]} {
pool Acre_pool
return
}
010...
hoolio
Cirrostratus
Apr 13, 2010Hi Raj,
Which iRule event are you testing this in? I'd expect HTTP_REQUEST. That seems to work for me on 10.1.0:
when HTTP_REQUEST {
if {[class match [HTTP::header "User-Agent"] contains "Acre_UserAgent"]} {
pool Acre_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