Hi there,
Thats what I used to replace the HostHeader...
Basically replacing the URI with the complete Request in a http class should be ok.
Like replacing HTTP:uri with
http://securemail.corp.com:8080[HTTP::uri]
This will normally cause the hostheader to be ignored.
Are you using a oneconnect profile ?
when HTTP_REQUEST {
set my_host [string tolower [HTTP::host]]
if {[HTTP::host] starts_with "leon.demo.com"} {
set destination_host hsrvepp1.demo.com
set source_host http://leon.demo.com
HTTP::header replace "Host" $destination_host}
log local0. [HTTP::header Host]
}
when HTTP_RESPONSE {
set server_location [string tolower [HTTP::header Location]]
if {$server_location starts_with "http://hsrvepp1.demo.com"} {
HTTP::header replace "Location" $source_host}
log local0. [HTTP::header Location]
}
Good Luck
Wiesmann