Root44
Sep 19, 2017Altostratus
f5 LB iRule Redirection for POST method
Hello guys,
I need some help here. There user is hitting the url which has a VIP1 on LB1 and from there it is getting redirected to VIP2 on LB2 using an iRule. When I used 307 redirection, it didn't work for POST method as it was coming from some SOAP UI tool (Worked for GET). Am I missing something here? Trying to check if I need to modify my rule.
when HTTP_REQUEST {
set uri "[HTTP::uri]"switch -glob [HTTP::uri] {
"/some_uri/*" {
if { [string tolower [HTTP::method]] eq "POST" } {
HTTP::respond 307 Location "https://test.example.com" }
}
default { pool some_pool }
}
}
Please help.
Thanks, R