Forum Discussion

Brian_Kenworthy's avatar
Brian_Kenworthy
Icon for Nimbostratus rankNimbostratus
Oct 03, 2007

irule 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

  • 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