Forum Discussion
Steve_Brown_882
Mar 14, 2008Historic F5 Account
Stream Breaking Flash Code
Hey Guys,
I am workig on moving one of our apps to our new box and have run into sort of a snag. We are using a stream profile to fix user uploaded content. Basically users should be uploading content with refrences to https instead they upload http links. We are using the irule below to resolve the issue. It works great. The issue is we have some flash content on the site and this irule breaks some of the flash content. I think what may be happening is whoever wrote the flash content has some refrence to http://domain. in the flash and the irule tries to change it which in turn breaks it. Does anyone have any thoughts on this? I am using rechunk on the responces...
when HTTP_RESPONSE {
STREAM::expression "@http://domain.@https://domain.@
STREAM::enable
}
- hoolio
Cirrostratus
Hello,when HTTP_RESPONSE { Disable the stream profile by default (so it's not left enabled for subsequent HTTP requests on the same TCP connection STREAM::disable Check if the response content type is text if {[HTTP::header value Content-Type] starts_with "text"}{ STREAM::expression "@http://domain.@https://domain.@ STREAM::enable } }
- Steve_Brown_882Historic F5 AccountThanks for the reply. I had started down the road of doing an if not on the the Flash type, but it made more sense to just allow text and that fixed the issue.
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