Raj_Zucre_Ramir
Apr 13, 2010Nimbostratus
HTTP::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