Donyemachi
Aug 05, 2019Nimbostratus
uri rewriting
I have a requirement to perform uri rewriting based on specific conditions. I have tried using "http:redirect" method but this converts the HTTP method from "POST" to "GET" when the client tries to resend the request.
when HTTP_REQUEST {
if { ( [HTTP::uri] == "/abcd/1/0/notify") } {
HTTP::uri /xyz/1/0/rest/notify/
pool POOL1
}
}
when I try this code, the uri doesn't change as the request is forwarded to the pool. Please what are m doing wrongly.