Forum Discussion
Christian_Meiss
Aug 01, 2016Nimbostratus
I don't understand [class match ... nor [class search - pls help
Hi folks
i have a data group
path_dg{
records {
/ {
data /bar
}
}
type string
}
I now try to get "/bar" if my HTTP::uri equals "/". but my iru...
adityoari_14383
Historic F5 Account
if I understand your requirement correctly, the behavior is expected since "/bar" does start with "/", i.e. when the code trace through the string "/bar" in the HTTP::uri, it sees that the string begins with a "/" and will match the variable with the data group
Christian_Meiss
Aug 01, 2016Nimbostratus
Ok more accurate:
i open http://host.domain.tld/ -> HTTP:uri equals /
[class match -value "/" starts_with path_dg] should return /bar
now i open http://host.domain.tld/bar -> HTTP:uri equals /bar
[class match -value "/bar" starths_with path_dg] should return nothing
But it's return also /bar.
I thinke my data group is a key:value pair and "class match" only looks into keys for matchings.
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