Forum Discussion
Chris1269_13050
Nimbostratus
Aug 05, 2015How to filter within iRule for HTTP_RESPONSE
Hi all,
Is there anyway we can use an iRule to filter a HTTP_RESPONSE with whats in the HTTP header or something like that? We current use a filter like:
when HTTP_RESPONSE { if {[LB::server pool...
Chris1269_13050
Nimbostratus
Aug 05, 2015Something like:
elseif {[LB::server pool] contains XXX_POOL"}{
HTTP::header replace Location [string map -nocase {"XXX" "uat_XXX"} [HTTP::header Location]]
HTTP::header replace Set-Cookie [string map -nocase {"/XXX" "/uat_XXX"} [HTTP::header Set-Cookie]]
STREAM::expression {@XXXB@uat_XXX@}
STREAM::enable }
Now throw another one into the mix coming from the same Pool. Like: uat_XXX1. So i guess the differences are the Location, but it doesnt appear to be working with that.
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
