Forum Discussion
moreski_63593
Nimbostratus
Oct 10, 2008http redirect - where's the payload
Hi,
I'm sure this will end up proving to be really simple for you (I seem to be failing to manage the search facility with much success (i.e., I have tried searching for tips / solution)).
Here is the rule:
when HTTP_REQUEST {
if {[HTTP::path] eq "/default.asp"}{
HTTP::redirect "http://someserververname.xxx/serverServer/XMLservice/Receiver.aspx"
}
}
The redirection works fine however, all the data that the client sends with the original request (xml message in this case) is lost. I'm not sure if I’m using the right type of rule of if what I'm trying to achieve is simply not possible (pretty much everything is possible with irules right).
System info:
BIG-IP 9.4.3 Build 1.4 Final
I do feel a little embarrassment as I have browsed the forum and everyone else’s posts seem to be a lot more interesting and technically challenging than mine. Nevertheless, many thanks in advance for your help...
- hoolio
Cirrostratus
Hi Morkeski,when HTTP_REQUEST { if {[string tolower [HTTP::path]] eq "/default.asp"}{ HTTP::uri "/serverServer/XMLservice/Receiver.aspx" } }
- moreski_63593
Nimbostratus
Many thanks for the speed reply. I now fully understand why I was getting the (expected) results. Unfortunately, someservername.xxx does not resolve to the VIP. - hoolio
Cirrostratus
I don't think there is a way to force the client to make a POST request to a new location. You could modify the URI and then change the destination of the request using the node command (Click here).
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects