Forum Discussion

Pat_70435's avatar
Pat_70435
Icon for Altocumulus rankAltocumulus
Feb 23, 2017

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...
  • Pat_70435's avatar
    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
           }