Forum Discussion

Parveez_70209's avatar
Parveez_70209
Icon for Nimbostratus rankNimbostratus
Oct 11, 2014

STREAM PROFILE ISSUE

Hi Kevin,

Reviewing this old doc, I am also facing the similar issue:

https://devcentral.f5.com/questions/basic-http-stream-profile

When browsing:

https://univardev2.jdadelivers.com/jda/webworksws/SecurityServices?wsdl, it is redirecting to schemalocation: http://univardev2.jdadelivers.com:80/jda/webworksws/SecurityServices?wsdl

Som tried creating a STREAM Profile setting the target as: @http://univardev2.jdadelivers.com:80@https://univardev2.jdadelivers.com@@

Will that work without additional Irule ?

If incase I create an Irule, whether the below will work:

when HTTP_REQUEST { tell server not to compress response HTTP::header remove Accept-Encoding

 disable STREAM for request flow
STREAM::disable

} when HTTP_RESPONSE { catch and replace redirect headers if { [HTTP::header exists Location] } { HTTP::header replace Location [string map {"http://univardev2.jdadelivers.com:80" "https://univardev2.jdadelivers.com"} [HTTP::header Location]] }

 only look at text data
if { [HTTP::header Content-Type] contains "text" } {

     create a STREAM expression to replace any http:// with https://
    STREAM::expression {@http://univardev2.jdadelivers.com:80@https://univardev2.jdadelivers.com@}

     enable STREAM
    STREAM::enable
}

}

Thanks and Regards PZ