Forum Discussion
hooleylist
Jul 10, 2009Cirrostratus
Hi Moritz,
I'd suggest using a stream profile and STREAM::expression based iRule to do this instead of trying to buffer the payload with HTTP::collect / HTTP::payload.
Here is an example:
http://devcentral.f5.com/wiki/default.aspx/iRules/stream__expression
when HTTP_RESPONSE {
Disable the stream filter by default
STREAM::disable
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace somestring with foobar
STREAM::expression "@somestring@foobar@"
Enable the stream filter for this response only
STREAM::enable
}
}
Aaron