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
}
01070151:3: Rule [class_me] error: line 1: [command is not valid in the current scope] [if {[class match [HTTP::header "User-Agent"] contains "Acre_UserAgent"]} { pool Acre_pool return }]
and if i changed it to:
if {[class match [HTTP::header User-Agent] contains Acre_UserAgent]} {
pool Acre_pool
return
}
01070151:3: Rule [class_me] error: line 1: [command is not valid in the current scope] [if {[class match [HTTP::header User-Agent] contains Acre_UserAgent]} { pool Acre_pool return }]
Please help.
Thanks!
Raj
- hoolio
Cirrostratus
Hi Raj,when HTTP_REQUEST { if {[class match [HTTP::header "User-Agent"] contains "Acre_UserAgent"]} { pool Acre_pool } }
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