Forum Discussion
Lee_Sutcliffe
Jul 16, 2012Nacreous
I've added the following iRule (there is existing code which directs traffic to different pools depending on the uri. To keep things simple I've removed these parts of the code)
However I get a TLC error:
TCL error: qa_xxx_rule - wrong args: should be "persist add uie | { [any [virtual|service|pool] | pool ]}" while executing "persist add uie [HTTP::cookie "AUTHTOKEN"]"
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "uriString" } {
if { [HTTP::cookie exists "AUTHTOKEN"] } {
persist uie [HTTP::cookie "AUTHTOKEN"]
use pool xxx-pool
}
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "AUTHTOKEN"] } {
persist add uie [HTTP::cookie "AUTHTOKEN"]
}
}