Forum Discussion
JCMATTOS_41723
Nimbostratus
Jun 10, 2014Cookie and URI irule not working?
We have some ltms with 10.2 that will need to match on a cookie and uri irule logic and doesn't seem to be working properly.
when HTTP_REQUEST {
if { ([class match [HTTP::cookie "UserInfo"] ...
Kevin_Davies_40
Nacreous
Jun 10, 2014Probably need to move brackets around like below.
when HTTP_REQUEST {
if { ([class match [HTTP::cookie "UserInfo"] contains companyX]) and \
not ([string tolower [HTTP::uri]] contains "/serviceb/")} {
pool SERVER1
}
}
Just a tip, when posting iRules. Select your code and then press Tab. It will format it nicely for you 🙂
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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