Forum Discussion
Igor_Morgado_38
Nimbostratus
Feb 03, 2011HTTP response data (html body) rewrite - questions
Hello
Im trying to apply a stream profile to change a string in html response from server the source is:
body marginheight="0" marginwidth="0" rightmargin="0" leftmargin="0" topmargin="0" ...
Igor_Morgado_38
Nimbostratus
Feb 03, 2011Right,
As you told, stream is applied *before* the decompression. But on iRules will I got the payload uncompressed?
If so I can let the compress working as is, and do the irule.
Something like: (shamelessly coppied from devcentral wiki üòâ
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"}{
Remove Body onload attribute
STREAM::expression "@onload=\"onLoadBody()\"@@"
Enable the stream filter for this response only
STREAM::enable
}
}
That is it?
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