Forum Discussion
hooleylist
Aug 11, 2010Cirrostratus
You can do this in the HTTP_REQUEST_SEND event:
when HTTP_REQUEST_SEND {
Need to force HTTP:: commands into the clientside context as the
HTTP_REQUEST_SEND event is in the serverside context
clientside {
Insert a custom HTTP header in the request headers with the selected server IP
HTTP::header insert Selected-Server [LB::server addr]
}
}
You could use just [LB::server] to get the pool name, IP and port instead of just the member IP with [LB::server addr].
Aaron