Forum Discussion
mj_almassud_136
Nimbostratus
May 12, 2014http to https VIP
hi all,
so we have an application that requires connecting to a specific URL, but this application only supports "http". we happen to have an "https" URL that this application needs to connect t...
mj_almassud_136
Nimbostratus
May 12, 2014This is the iRule I got from the link:
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
if { [HTTP::is_redirect] } {
HTTP::respond 302 Location [string map { http:// https:// } [HTTP::header Location]]
} }
it seems as if it's doing the opposite of what I am trying to accomplish.
is it?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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