Forum Discussion
Pat_Miller_9897
Nimbostratus
Apr 23, 2009New pool or Virtual Server Connection from within HTTP_RESPONSE
In the code below, I see the log message redirect, But it will not call a new virtual or a new pool.
I have an inbound soap request, that I do not know what pool to send it to, My ...
Nat_Thirasuttakorn
Employee
Apr 24, 2009I think you need to save original request in variable, and use HTTP::retry to accomplish this...
If I am not wrong your request is POST, you may need to save it in HTTP_REQUEST_DATA like this...
(- you may need to issue HTTP::collect command in HTTP_REQUEST event)
set request_original [HTTP::request][HTTP::payload [HTTP::header Content-Length]]
- pass the request to P_test_vcookie in the first round
- detect version and keep pool/virtual selection in variable
- once you are ready to connect to the real destination, use HTTP::retry. something like this
HTTP::retry $request_original
- then it will invoke HTTP_REQUEST again. now you can pick the right pool/virtual based on pool/virtual selection variable from previous step
Nat
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