Forum Discussion
JT_144596
Jun 17, 2016Nimbostratus
Added as answer so i can format
Here is the irule, i have *** where the functionality needs to go.
when HTTP_REQUEST {
set Original_request [HTTP::request]
HTTP::uri "/newURI[HTTP::uri]"
Send the out-of-band validation query to the MicroService.
log local0. "Calling new service"
pool new_service_pool
}
}
}
when HTTP_RESPONSE {
if {[HTTP::status] eq 302 } {
pool 2nd_pool
***** Change the $Original_request URI ****
HTTP::retry $Original_request
} else {
HTTP::retry $Original_request
log local0. "No Re-direct - Carry on as we were"
}
}
- Vijay_EJun 18, 2016CirrusInstead of saving the request, why not use a fresh one ? The fresh one seems to be completely independent of the saved request, unless I am mistaken.
- JT_144596Jun 20, 2016NimbostratusHi, I need the original request parameters, however I have used String manipulation for this now. Thanks for your help. JT