Forum Discussion
Glenn_32974
Nimbostratus
Jun 03, 2010HTTP Response HTTP to HTTPS
I have the following scenario:
Client connects to website https://myquestion.com.vz to create an account in order to gain access to resources. (I have setup an SSL client side profileto do this).
After the client creates the account the server responds (HTTP_RESPONSE) with the original website URL but in http fashion (http://myquestion.com.vz) so clients are getting an error because of the SSL client side profile
Basically what I need is to convert server response from http://myquestion.com.vz to https://myquestion.com.vz
Unfortunately Im not a irule master but I know this can be achieved via an iRule.
I know this is probably to much to ask but can some help me out with this iRule?
best
G
2 Replies
- hoolio
Cirrostratus
Hi Glenn,
Is the http:// reference in the headers or the payload? To rewrite http:// to https:// in the Location header you can enable rewriting of redirects in a custom HTTP profile. For rewriting response content, you can use a stream profile and STREAM::expression based iRule. See the related wiki page for examples and more info:
http://devcentral.f5.com/wiki/default.aspx/iRules/stream__expression
Aaron - Glenn_32974
Nimbostratus
thx very much for the info! It help a lot!
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