Forum Discussion
hector_40668
Nimbostratus
Dec 17, 2010F5 replace string from "http" to "https" in jar files
Hi,
I am very new to F5 and I hope you guys here can help me out on this.
Recently we encounter some problems with files that are going thru the F5. It seems like when the client downloads jars files thru the F5, the contents of the jars files seems to replace.
For example: original hector.jar files contains multiple files with the string "http://example.com", when the client download this hector.jar files and view it on their local machine, "http://example.com" will be replace with "https://example.com".
I am really very puzzled as in how come the contents of the jar files will be changed. Is there a settings in the F5 console to stop it from doing so?
Rgds
Hector
- hoolio
Cirrostratus
Hi Hector, - hector_40668
Nimbostratus
Hi Aaron, - Chris_Miller
Altostratus
I'd check out that WebLogic_Stream profile and Weblogic_HTTPS profile. - hoolio
Cirrostratus
As Chris suggested, it's quite likely that the stream profile would be the reason for the change in the application content. You can use an iRule to selectively enable the content rewriting for the stream profile: - hoolio
Cirrostratus
Yes, the stream profile configuration of a source of http:// and a target of https:// dictates that LTM will replace http:// with https:// in all request and response payloads. To avoid this issue, you can selectively enable the stream filter using STREAM::enable/disable in an iRule. The STREAM::expression wiki page has some examples. A safe bet would be to restrict the rewriting to responses only with a response content-type of text: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"}{ Replace http:// with https:// STREAM::expression "@http://@https://@" Enable the stream filter for this response only STREAM::enable } }
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