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...
Hannes_Rapp
Nimbostratus
Aug 05, 2015Hi Ketzuken,
Is the value of "Location" header you're trying to use in your conditional switch statement? If so, try to replace
switch -glob [HTTP::header "Location"] with
switch -glob [HTTP::header value "Location"].
Additionally, you may find it useful to include a log statement for the duration of troubleshooting and testing.
log local0. "[HTTP::header value "Location"]". If this log statement returns an empty value to /var/log/ltm, you'll know the "Location" header was not included in the HTTP response.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
