Forum Discussion
Stanislas_Piro2
Jun 16, 2015Cumulonimbus
You can use a stream profile with this type of irule :
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
}
when HTTP_RESPONSE {
Check if response type is text
if { ([HTTP::header value Content-Type] contains "text/html" )
Match an http://*example.com string and replace it with nothing yet
STREAM::expression {&<\w* error=\"0\">&&}
Enable the stream filter for this response only
STREAM::enable
}
}
when STREAM_MATCHED {
Check if the matched string meets some condition that can't easily be checked for using a single regex in STREAM::expression
if {[STREAM::match] starts_with "