Forum Discussion
praque_135655
Nimbostratus
Oct 25, 2013Invoke another loadbalancer url from current loadbalancer url using irule
Hi All,
I have developed the code for the following use case. I have used the HTTP:URI to call the cookiegenerator.html,
but i need to call diffrent loadbalacer url(http://xmppt.airservices...
praque_135655
Nimbostratus
Oct 26, 2013Hi 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"
}}
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