Forum Discussion
hooleylist
Jul 09, 2009Cirrostratus
That's correct. You could either move the variable declaration to another event other than RULE_INIT or use two different names.
In theory I think there can only be one body tag in well formed HTML, so you could use a stream profile and STREAM::expression based iRule to replace with your HTML and . A stream filter would be more efficient than collecting the payload and rewriting it. You can check the STREAM::expression wiki page for some examples:
STREAM::expression
http://devcentral.f5.com/wiki/default.aspx/iRules/stream__expression
Aaron