Forum Discussion

Leo123_53841's avatar
Leo123_53841
Historic F5 Account
Sep 24, 2011

modify a response http file using iRule

Hi iRule Gurus,

 

 

I just wonder if iRule is able to modify the response file (e.g., inserting one line or deleting one line) sent from the server. The client should be able to see the modified http page.

 

 

Thanks,

 

-Leo

 

 

  • Hi Leo,

     

    Are you taking about modifying content in an HTML file - specifically a page that is sent to the client as a response?

     

     

    Bhattman
  • To rewrite response content from a pool member to the client you could use a stream profile and STREAM::expression iRule:

     

     

    http://devcentral.f5.com/wiki/iRules.stream__expression.ashx

     

    http://devcentral.f5.com/wiki/iRules.GomezInjection.ashx

     

    http://devcentral.f5.com/wiki/iRules.WebPage_Script_Insert_v10.ashx

     

     

    Aaron