conditional stream irule
Currently the following irule is successful for some of the applications but breaks others:
when HTTP_REQUEST { Disable the stream filter for client requests STREAM::disable Disable compression HTTP::header remove "Accept-Encoding" }
when HTTP_RESPONSE { if {[HTTP::host] contains "connect-q.abbvie.net" } { if {[HTTP::uri] contains "layouts/15/LstSetng.aspx"} { Disable the stream filter for server responses STREAM::disable Enable the stream filter for text responses only if {[HTTP::header value Content-Type] contains "text"}{ Replace 'old_text' with 'new_text' STREAM::expression {@[Hh][[Tt][Tt](/|&.x2f;){2}@} Enable the stream filter for this response only STREAM::enable } } } }
I was wondering if someone would be able to provide the syntax such that if the uri contains "/lstsetng.aspx" then perform the stream rewrite otherwise do not perform the stream rewrite.
Thanks,