Forum Discussion
Fabio_Sozzi_308
Feb 17, 2011Nimbostratus
iRule for Find&Replace
Hi everyone,
i need to implement an irule for find a string into the HTTP Body and replace with another.
I tried to search a function to satisfies my request but i found nothing.
...
hooleylist
Feb 17, 2011Cirrostratus
As Jason suggests, you can take a look at the STREAM::expression wiki page for examples of rewriting response content. You'll need to either disable compression on the pool members or by removing the accept-encoding request header.
http://devcentral.f5.com/wiki/default.aspx/iRules/stream__expression
when HTTP_REQUEST {
Remove Accept-Encoding header to prevent server response content compression
HTTP::header remove Accept-Encoding
}
Aaron
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