Forum Discussion
Michael_Yates
Mar 17, 2011Nimbostratus
You can capture the protocol in the HTTP::header on the Response and change it.
Try this and let me know if it works for you.
when HTTP_RESPONSE {
if { [ HTTP::is_redirect] and [URI::protocol [HTTP::header "Location" ]] eq "http" } {
set path [findstr [HTTP::header "Location" ] "//" 2 ]
HTTP::header replace "Location" "https://$path"
}
}