Forum Discussion
Kevin_Stewart
Oct 17, 2013Employee
Right... The STREAM profile won't catch response headers in the HTTP_RESPONSE event. Since we're just looking for a redirect, try this instead:
when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
HTTP::header replace Location [string map {"currenturl.olddomain.local" "newurl.ourdomain.com:8052"} [HTTP::header Location]]
}
}