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" ...
hoolio
Cirrostratus
Feb 03, 2011Is the server sending compressed response payloads? If so, LTM won't decompress it before applying the stream profile. You could check the responses using a browser plugin like HttpFox for Firefox or Fiddler2. If you want to prevent server response payload compression, you can use a simple iRule:
when HTTP_REQUEST {
HTTP:header remove "Accept-Encoding"
}
You could also use an iRule to configure the stream filter and only apply it to text responses. By default, when you use a stream profile and HTTP profile, both request and response payloads will have the stream filter applied. For examples of an iRule, you can check the STREAM::expression wiki page:
http://devcentral.f5.com/wiki/default.aspx/iRules/stream__expression
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