Forum Discussion

JamesB12's avatar
JamesB12
Icon for Altocumulus rankAltocumulus
Jun 24, 2020

Retain the HTTP Header in URL Redirection - in POST method

Hi,

 

I have an iRule for below URL redirection.

 

when HTTP_REQUEST {

 if { ([HTTP::host] eq "abc.com") && ([string tolower [HTTP::uri]] starts_with "/iauth") } {

  HTTP::redirect https://xyz.com[HTTP::uri]

 }

}

 

When the POST method is used to redirect , it fails and forwards the traffic on GET - is there a way to keep the header as is?

 

Works fine when GET method is used.