Forum Discussion
JSpartan0901_95
Nimbostratus
Mar 07, 2012Ability 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...
hoolio
Cirrostratus
Mar 07, 2012Hi J,
You can set a variable in HTTP_REQUEST and check for it in HTTP_RESPONSE event:
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
}
}
Aaron
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