Forum Discussion
sb_2323_80570
Nimbostratus
May 10, 2014HTTPS Response variable
Hi,
I want to set some responses in order that I can set HTTPS via HHTP stream, Could anyone comment if the below syntax is correct for setting HTTPS variables for responses ?
set xxx_response_...
Kevin_Stewart
Employee
May 10, 2014You're probably better off with a STREAM profile and iRule:
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove Accept-Encoding
}
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] contains "text" } {
STREAM::expression {@http://@https://@}
STREAM::enable
}
}
So instead of maintaining two VIPs (one HTTP and one HTTPS) and redirecting every HTTP request to the HTTPS VIP, a STREAM iRule will simply replace all references to http:// URLs in the response HTML payload.
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