Forum Discussion
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.