Forum Discussion
amebiz_142234
Nimbostratus
May 24, 2018override 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 whic...
youssef1
Cumulonimbus
May 24, 2018Hi,
of course you can override var... try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] start_with "/foobar" } {
set var "bar"
} else {
set var "foo"
}
}
when HTTP_RESPONSE {
log 1.1.1.1 "logging $var"
}
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