Forum Discussion
Ricky_S_79564
Nov 20, 2012Nimbostratus
Hi guys,
Just a quick update. I got the specific problem above to work by writing a stream expression within an iRule. The iRule is as follows:
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTP::header value Content-Type] contains "text"}{
Replace any http:// instance with http://, unless the original string is http://www.no-change.com
STREAM::expression {@http://aislive.invicta.cantium.net:80@https://aislive.invicta.cantium.net:443@}
Enable the stream filter for this response only
STREAM::enable
}
}
aislive.invicta.cantium.net is the FQDN. However what i have found now is other options within the application also do not seem to work. i.e. there are options within the application to view PDF outputs of a particular persons case history, I can produce the PDF output fine in one section of the app but cannot produce it in another option of the application.
I ran packet captures for the PDF output that works and packet captures for the PDF output that does not work but am having trouble viewing the GET commands within these packet captures so am unable to see which tcp ports it is trying to talk in. I have also before amended the irule above to add in stream expressions for converting port 8080 into 443 but this has not done anything.
Any help would be appreciated. If you want to see packet captures please drop me your email address and i can forward on. many thanks.