Forum Discussion
ramesh_110176
Nimbostratus
Jan 08, 2009Need a Simple iRule
HI
I am new to iRules and have a need to check the content of a cookied, if it matches then I need to send to a pool if not re-direct it to a sorry page. Below is what I have:
...
James_Quinby_46
Jan 08, 2009Historic F5 Account
Ramesh -
You want to do:
when HTTP_REQUEST {
log local0. "check for [HTTP::cookie contains]"
if { [HTTP::cookie contains "abcdefgh"] }
{
pool test
}
else { [HTTP::redirect http:\\sorry.x.y]}
}
Also, what is the name of the cookie that is being tested?
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
