Forum Discussion
praque_135655
Nimbostratus
Oct 27, 2013Not Returning back to the current loadbalancer url from external service
Hi All,
For achieving the below use case i have written the following service.From the current url calling the ezternal Cookiegenerator.html service and SMCookie got generated.
But it is not ret...
praque_135655
Nimbostratus
Oct 28, 2013Hi Kevin,
Now cookie value returning from external url to current url using the following code.
when CLIENT_ACCEPTED { log local0. "enter client_accepted:" set cookie 1 set gotpath 0 set smsession "" set def_pool [LB::server pool] set sm 0
}
when HTTP_REQUEST { log local0. "enter http_request:: gotpath=$gotpath" if { $gotpath == 0 && $sm == 0 } {
log local0. "inside _Rachel_8080:" pool Rachel_test_8080 HTTP::uri /OAuthDemo/cookiegenerator.html log local0. "gotpath:::$gotpath;uri:::HTTP::uri /OAuthDemo/cookiegenerator.html" set request_headers [HTTP::request] log local0. "host:::[HTTP::host]" log local0. "request_headers:::$request_headers" set gotpath 1
} elseif { ([LB::server pool] ne $def_pool) } { pool $def_pool }
} when HTTP_RESPONSE { log local0. "http_response: cookie:=$cookie; status:=[HTTP::status]; sm=[HTTP::cookie exists "SMSESSION"]" if { ([LB::server pool] ne $def_pool) && [HTTP::cookie exists "SMSESSION"] } { set smsession "SMSESSION=[HTTP::cookie value SMSESSION]" log local0. "smsession$smsession" set sm 1
}
}
Regards, praque
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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