Forum Discussion
Response details back from calling HTTP.
- Mar 06, 2017
I was unable to get this to work
if { [[LB::server pool] contains loadbalancePool]} { Persist Cookie Add } else pool loadbalancePool2 HTTP::header replace host www.newsite.com }
I needed to utilize a switch statement for this to function -
switch -glob [LB::server pool] { "/loadbalancedPool" { } Persist Cookie Add }
Here's one Example, Is it possible to pull back data in a response from a Pool?
Is there any way to extract data from a Given Request made on a VIP or a Pool at all? Is there any way to re route the existing traffic in the event the response comes back failed and redirect within the response to another given pool.
Http_Response
if { [[LB::server pool] contains loadbalancePool]} {
Persist
Cookie Add
} else
pool loadbalancePool2
HTTP::header replace host www.newsite.com
}
Through articles and investigating the googles I have been unable to find any examples of how to manipulate or pass data differently via an HTTP response within an irule. I know this can be done via a Request, but is it possible via Response if we have trouble with an application on the load balanced pool?
Is this even possible? I have been unable to find any solid documentation on what an HTTP response irule can do as far as data extraction within an HTTP request.
Recent Discussions
Related Content
* 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