amebiz_142234
May 24, 2018Nimbostratus
override variables
example
when HTTP_REQUEST {
set var "foo"
if { [HTTP::uri start_with "/foobar"] } {
set var "bar"
}
}
when HTTP_RESPONSE {
log 1.1.1.1 "logging $var"
}
Hi guys, for all requests which they are not start_with /foobar will be logged with "foo".
But if there a Request matched with /foobar* then there will be also logged "foo" but that should be logged with "bar"
whats going wrong here? can i not overrides existing var's? or is there a special syntax for it?