Forum Discussion
Pat_70435
Feb 23, 2017Altocumulus
Response details back from calling HTTP.
Question on an HTTP_Response
Has anyone done any work with HTTP Response in detail.
Via the Wiki data I'm not seeing the data I'm looking for.
My questions go to within an HTTP Response d...
- 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 }
boneyard
Feb 25, 2017MVP
what exactly is the wiki not saying, you checked this page right: https://devcentral.f5.com/wiki/iRules.HTTP_RESPONSE.ashx
2nd example shows inserting a header
3rd example hints what to do if you need the content, HTTP::collect is your friend
https://devcentral.f5.com/wiki/iRules.HTTP__collect.ashx
then there is a huge list of actual examples on the bottom of the HTTP_RESPONSE page.
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