Forum Discussion
ItayG_188662
Nimbostratus
Aug 02, 2018iRule variable not being reset
Hello guys,
I've the following iRule:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/someuri"} {
set time_to_change 1
}
}
when HTTP_RESPONSE {
if {[info exi...
Stanislas_Piro2
Cumulonimbus
Aug 02, 2018This is the expected behavior!
Variable is set for the whole tcp connection, and every requests within this connection!
To solve your issue, change the code to
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/someuri"} {
set time_to_change 1
} else {
set time_to_change 0
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
