Forum Discussion
Brian_Kenworthy
Nimbostratus
Oct 03, 2007irule help - possible redirect?
Hi all, I was wondering if this is possible and how I would accomplish this with a 4.5 irule.
I have a requirement for a client to http post to: http:///webservices/listenerpage
We are replacing the existing web service with a new web service, but we do not want to change the URI they post to now. So I was wondering if it is possible to forward or redirect the traffic to, say
http:///NEWwebservices/listenerpage/somenewpage
Can the be done using an irule which redirects, or does the new URI have to match what the client is posting to now?
Thanks in advance,
Brian
1 Reply
- hoolio
Cirrostratus
Hello,
If you issue a 302 redirect to the client, the client won't send an identical POST request to the new location. They will send a GET request without the POST data from the original request. So ideally, you'd want to just rewrite the URI and send the request to the web server. Unfortunately in 4.x, you cannot rewrite the URI--you can only issue a redirect.
If it's possible to update the application, I'd try that.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
