Forum Discussion

davek_130211's avatar
davek_130211
Icon for Nimbostratus rankNimbostratus
Jul 24, 2013

iRule rewrites

Hi,

 

 

F5 newbie here with a quick question. I don't have a setup to try this out on and my qeustion is more related to RESTful web services in a way, but here goes.

 

If you set up an iRule with a rewrite, if I have code running in a web app (i.e. a RESTful web service) and I am able to grab the HTTP request programatically,

 

so that I can see the request URL, will that URL contain the client's original request URL before the rewrite or will it be the rewritten URL?

 

 

Thanks!

 

 

Dave

 

2 Replies

  • Hi Davek,

     

     

    The iRule will intercept the incoming HTTP Request from the Client and can log the original request prior to a rewrite. Once the rewrite is complete it will send the modified request to the downstream server, at which point the server will only be aware of the modified request.

     

     

    The LTM is a full Proxy, so it maintains a two connections:

     

    1. Client to LTM - From the Clients perspective the LTM is the Server.

     

    2. LTM to Server - From the Servers perspective the LTM is the Client.

     

     

    Does this answer your question or does it generate more questions? :-)
  • Michael,

     

    Thx for the quick reply and yes, that answers my question at this point.

     

    Dave