Forum Discussion
Invoke another loadbalancer url from current loadbalancer url using irule
Hi Kevin,
Seems like below code is working. instead of cookiegenerator.html, i used the same html name as default pool(finalusers.html). Please verify the code and advise on this.
when CLIENT_ACCEPTED { log local0. "enter client_accepted"
set gotpath 1 set def_pool [LB::server pool] }
when HTTP_REQUEST {
log local0. "enter http_request: gotpath=$gotpath"
if { $gotpath == 1 } {
log local0. "inside test_8080"
set request_headers [HTTP::request]
log local0. "request_headers::$request_headers"
pool Rachel_test_8080
log local0. "host::[HTTP::host]"
set gotpath 0
}
else {
log local0. "inside testpool"
pool $def_pool
}
}when HTTP_RESPONSE {
log local0. "http_response: cookie=$cookie; status=[HTTP::status]; sm=[HTTP::cookie exists "SMSESSION"];"if { [HTTP::status] == 200 } { set smsession "SMSESSION=[HTTP::cookie value SMSESSION]" log local0. "smsession:::$smsession"
}}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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