Forum Discussion
ScottT_94233
Nimbostratus
Jan 13, 2017Data group field accessible to iRule?
Hello,
I have an iRule that's working fine to validate a variable containing the http header variable Origin to values defined in a data group.
if { [ class match [string tolower $request_o...
Jeremy_Church_3
Cirrus
Mar 17, 2017I believe the answer is pretty simple here. Use
-name instead of -value.
In this rule, the variable
ORIGIN is set to the returned value and checks to see if it's blank at the same time.
set REFERER [string tolower [HTTP::header value Referer]]
if { [set ORIGIN [class match -name $REFERER starts_with dg_sb_fit1_allow_origin]] ne "" } {
log local0. "You matched ${ORIGIN}"
}
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