Forum Discussion
Richard_Jones_1
Nimbostratus
Nov 01, 2005Replacing http with https in html content
Hello All,
I am trying to fix links in an html file sent to a user.
The user connects to https://smart.company.com:8008 and logs in.
After logging in, the html file the user receives has the link to the .css file and other links in the html document point to http://smart.company.com:8008/...
We can see the text in the html page, but the graphics are missing, because the css and image url's are incorrect.
I have tried using a Stream profile with http and https in the fields, but I don't see any change in the html the user receives.
I then tried to use the Credit Card example for scrubbing and replacing text, but again no change in seen.
I then tried to use TCP::payload and replace, which failed as well.
Is one of these the correct way to approach this problem, or should I take another look at it?
Thanks!!
-Richard
Here is the html I am trying to change:
- Richard_Jones_1
Nimbostratus
I figured it out. The web server was zipping the html before sending it. The Big-IP couldn't see into the zipped data to change http to https. I used an HTTP::header remove Accept-Encoding statement in an HTTP_REQUEST action to stop the web server from zipping the data. Now the Big-IP can see the html, and a stream profile changes the http to https. Works beautifully now.... - bl0ndie_127134Historic F5 AccountBe sure to use the 'response rechunk' http profile option to ensure that the chunked server data is handled properly.
- Richard_Jones_1
Nimbostratus
Thanks! That fixed the one problem I saw in IE. Mozilla didn't care, though. - Rom_Ortiz_78966
Nimbostratus
Hello there rjones! - Deb_Allen_18Historic F5 AccountHi Rom
when HTTP_REQUEST { HTTP::header remove Accept-Encoding }
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