Forum Discussion
Jeff_Goot_42327
Apr 26, 2012Nimbostratus
STREAM::expression Not Replacing All Occurrences
I'm trying to track down an issue with an iRule that uses STREAM::expression. It's able to replace the occurrences of the string, but not all of the occurrences.
Here's ...
hoolio
Jan 07, 2013Cirrostratus
Hi Ken,
Is the server sending a chunked or compressed response? Those are two reasons that the stream filter might not match (assuming the stream filter is set correctly).
You can prevent chunking by setting the proxied request to HTTP 1.0 in HTTP_REQUEST:
https://devcentral.f5.com/wiki/iRules.CreditCardScrubberUsingStream.ashx
Don't allow response data to be chunked
if { [HTTP::version] eq "1.1" } {
if { [HTTP::header is_keepalive] } {
HTTP::header replace "Connection" "Keep-Alive"
}
HTTP::version "1.0"
}
And to prevent compression, you can remove the Accept-Encoding header from the proxied request in HTTP_REQUEST.
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