Forum Discussion
JSpartan0901_95
Mar 08, 2012Nimbostratus
Ability to correlate HTTP response to a HTTP request in iRules
Hi,
We have a requirement to perform certain operations on HTTP response only for specific HTTP requests. Is there any way I can correlate a response to a request in iRules?
Thanks!
-J
- hoolioCirrostratusHi J,
when HTTP_REQUEST { if {$some_check==1}{ set check_response 1 } else { set check_response 0 } } when HTTP_RESPONSE { if {$check_response==1}{ do something } }
- JSpartan0901_95NimbostratusThanks, Aaron. I am novice in iRules.
- hoolioCirrostratusYes, local variables are tied to a connection. Global variables (those set using 'set ::my_var value' in any non-RULE_INIT event or those set as 'set my_var value' or 'set ::my_var value' in RULE_INIT) are available across all connections. SMP summarized this nicely in this post. It's relevant for v10 and v11.
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