Forum Discussion
Russell_E_Glaue
Nimbostratus
Feb 18, 2009How to disable iRule processing on keep-alive per request when using HTTP::respond
How to disable iRule processing on keep-alive per request when using HTTP::respond
Okay, I have encountered a problem I cannot figure out how to get around.
Here ...
Russell_E_Glaue
Nimbostratus
Feb 18, 2009Using local variables - Can you provide an example, because I tried a local variable and it did not work.
Here is my test for using a local variable:
irule firstirule {
when HTTP_REQUEST priority 10 {
set localVar "somevalue"
}
}
irule secondirule {
when HTTP_REQUEST priority 100 {
if { not [info exists $localVar] } {
log local0.err "Variable localVar not available. Initialized in iRule firstirule."
}
}
}
When I run code like this, I get the log message every time.
When I try to access the localVar variable in secondirule anyway, I get an error message.
-RG
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
