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...
Stanislas_Piro2
Cumulonimbus
May 24, 2018Hi,
the issue is this line:
if { [HTTP::uri start_with "/foobar"] } {
You must use
[HTTP::uri]
to get URI from HTTP request, then compare it with expected URI (move the close bracket from the end of the line to just after HTTP::uri)
if { [HTTP::uri] start_with "/foobar" } {
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