Forum Discussion
The_Bhattman
Aug 03, 2011Nimbostratus
Hi Jucao,
Sorry I don't have a lab work up for this. However, looking at the logic try the following
when HTTP_REQUEST timing on {
set uri [string tolower [HTTP::uri]]
if {[class match $uri starts_with gen3abURLs_SRWD29] } {
if {([HTTP::cookie value_cookie] ne "") } {
scan [HTTP::cookie value_cookie] %s%d member port
pool cjjlb member $member $port
} else {
pool cjjb
}
}
when LB_SELECTED {
set lbvalue "[LB::server_addr] [LB::server port]"
}
when HTTP_RESPONSE {
if {$lbvalue ne "" } {
HTTP::cookie insert name value_cookie value $lbvalue path "/"
}
}
I hope this helps
Bhattman