Forum Discussion
Dec 26, 2019
Hi Shripaty,
This error is caused by no space after "match".
if { [class match [string tolower [HTTP::path]] equals URI_datagroup] } {
- ShripatyDec 26, 2019Cirrus
Thanks , for the hint , but still i am not able to match the consecutive http path with the URI listed in the datagroup
I am trying to match
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] starts_with "/a/b") and ([class match [string tolower [HTTP::path]] eq x_URI_list) } {
pool x_pool
}elseif {([string tolower [HTTP::uri]] starts_with "/a/b") and ([class match [string tolower [HTTP::path]] eq y_uri_list]) } {
pool y_pool
}else {
reject
}
}
}
- Dec 26, 2019
Does the datagroup strings contain "/a/b"?
- ShripatyDec 27, 2019Cirrus
No, I have provided the data group values as X and Y sepcifically , do i need to specify the full path for datagroup