Forum Discussion
Andrew_Bretten_
Nimbostratus
Oct 29, 2006payload replace fails against content from .jsp ?
I have the following iRule appled to a virtual server
when HTTP_RESPONSE_DATA {
set find "http://"
set replace "https://"
set payload [HTTP::payload]
if {[regsub ...
Andrew_Bretten_
Nimbostratus
Oct 29, 2006aaron, thanks for the reply.
I had already discovered I could use a stream profile instead but had only used the basic function that would rewrite all http:// instances.
I wanted to have the capability to be more granular (eventually).
Then after posting this I trolled and found that 9.2 supports multiple source/targets in a stream profile.
So I have tested a stream profile which works fine (as you suggested).
So my posting on iRules is more me wanting to figure out the iRule just because its bugging me why its not working. I'm leaving the production app on the stream profile.
I've got an open case with F5 and reported my findings today as an update to that case...I think the regusb in the iRule is having a problem with something in the html output......since the iRule works fine against a more basic web page with the same http:// links.
One thing I'm looking at is the web apps plugin is putting about 20 carriage returns very near the top of the html, perhaps that's throwing regsub off. Or maybe the header is reporting the wrong content length.....anyway I figured I'd give the html code to F5 along with my iRule and see if they would take a look.
I'm a little wary about posting the code to a public forum, I might have to get permission from my own company to do that.
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