redirects with get / post
We have created iRules to perform redirects on existing web services. All the rules appear to work correctly when performing a HTTPGet. However, when connecting from another application, the request comes across as an HTTPPost and is never redirected. I have verfied in the IIS logs that the request is never sent to its final destination (the server trying to redirect to). Is this something that can be fixed on the iRule, profile or the vip?
below is my irule.
when HTTP_REQUEST { if { ([string tolower [HTTP::host]]) contains "unity.mysite.com" } { switch -glob -- [string tolower [HTTP::uri]] { "akcelrons.asmx" { HTTP::redirect "https://webservice.mysite.com/Unity/akcelrons.asmx" } "credispher.asmx" { HTTP::redirect "http://webservice.mysite.com/Unity/credispher.asmx.asmx" } "interfaceser.asmx" { HTTP::redirect "https://webservice.mysite.com/Unity/interfaceser.asmx" } ::"meridian.asmx" { HTTP::redirect "https://webservice.mysite.com/Unity[HTTP::uri]" } "unitysale.asmx" { HTTP::redirect "https://webservice.mysite.com/Unity/unitysale.asmx" } "unitywep.asmx" { HTTP::redirect "https://webservice.mysite.com/Unity/unitysale.asmx" } "weblott.asmx" { HTTP::redirect "https://webservice.mysite.com/Unity/Unityweblott.asmx" } } } }
It get redirected to a GET request