Forum Discussion
Aabuitrago
Altostratus
Hi JG,
thank you for your help. Its a redirect issued by the app server. The app server is sending back the entire URL including the port.
regards,
Lee_Sutcliffe
Jun 13, 2019Nacreous
I would echo everything JG has said.
if an application is issuing a redirect with a local port in the response, it ideally needs fixing on the application.
Reason being, you may end up with absolute HTML references that also need correcting.
That said, if it is just a redirect you could use the following (this is untested as I've written this on my phone)
when HTTP_RESPONSE {
if { [HTTP::is_redirect] }{
HTTP::header replace Location "https://[getfield [HTTP::host] : 1][HTTP::uri]"
}
}