Forum Discussion
sael_315797
Nimbostratus
Apr 24, 2017choosing pool based on cookie exists+cookie value
can you please help me correct the errors in my last part of the script:
when HTTP_REQUEST {
if {[HTTP::cookie exists "cat"]}{
if {[HTTP::cookie value "cat"]equals "yes"}{
pool Pool_ID
} }
here is the errors:
Rule [iRule-corder] error: line 15: [wrong args] [when HTTP_REQUEST{] line 17: [command is not valid in the current scope] [if {[HTTP::cookie exists "F2C"]}{ if {[HTTP::cookie value "F2C"]equals "yes"}{ pool Pool_VIP2 } }]
- Stanislas_Piro2
Cumulonimbus
Hi,
A space is missing between ] and equals in :
[HTTP::cookie value "cat"]equals "yes"
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