Robert_47833
Jun 03, 2011Altostratus
switch -glob to match two or more than two conditions
Hi,I wanna to achieve this ,use switch -glob instead of if/else chain
if { [[TCP::local_port clientside] != 443] && [[HTTP::uri] starts_with "/mobile/auth"] }
{
HTTP::redirect "https://[getfield [HTTP::host] ":" 1]/[HTTP::uri]"
log local0. "here i am 1 [HTTP::uri]"
}
else
{
persist none
SSL::disable serverside
pool SRWD32-STATIC
log local0. "here i am 2 [HTTP::uri]" }
}
but how to achieve this cause we need to match 2 conditions here.