Forum Discussion
commsmonkey_172
Sep 30, 2011Nimbostratus
Store variable from STREAM::expression and use in HTTP_RESPONSE context
Hi F5ers, I've been looking for a way to store the stream matched hostname in a HREF from a HTML stream. As I rewrite the content from internal domain to external domain using...
hooleylist
Oct 03, 2011Cirrostratus
As Nitass said, HTTP_RESPONSE is triggered when the HTTP response headers from the pool member are parsed. The stream filter is applied after this event. The response headers have already been unbuffered and sent to the client by STREAM_MATCHED.
If you want to modify the headers based on the response payload, you'll need to have TMM buffer the response using HTTP::collect.
http://devcentral.f5.com/wiki/iRules.http__collect.ashx
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