Forum Discussion
Irule applied stream profile and URLs in comments - any thoughts?
Hi Reddy,
You should actually be able to skip the STREAM_MATCHED code as you're already setting the find/replace string in the STREAM::expression command.
Also, someone else recently pointed out that it is more complete to disable the stream filter on each request (in HTTP_REQUEST) than on every response. Using the original method, the stream filter would be left enabled for a subsequent request. ie, if there was a text response which enabled the stream filter, the stream filter would be left enabled on the subsequent HTTP request on the same TCP connection.
Can you try this instead?
when HTTP_REQUEST {
Disable the stream filter by default
STREAM::disable
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@http://www.example.com@https://www.example.com@}
Enable the stream filter for this response only
STREAM::enable
}
}
Aaron
Recent Discussions
Related Content
* 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
