Forum Discussion
Deb_Allen_18
May 05, 2006Historic F5 Account
Redirect sends "Connection: Keep-Alive" header
Using a basic HTTP redirect statement: if { blah }{
HTTP::redirect https://$host:$newport[HTTP::uri]
return
}
we're seing an HTTP 1.0 response with a Keep-Alive header, even though the cl...
Jason_Reed_4703
Jan 07, 2015Historic F5 Account
I had a customer run into this, where we found the newer browsers performed TCP Keep-Alives that would reset the TCP idle timeout every 10~45 seconds. I poked around and couldn't get the Connection: Keep-Alive header removed or replaced, so I ended up not using the built in HTTP::redirect, and instead simply used:
when HTTP_REQUEST {
if { [HTTP::uri] contains "secure"}
{
HTTP::respond 302 conent {
Location: https://secure.company.com
Server: BigIP
Connection: Close
Content-Length: 0
}
return
}
}
- Georgi__Joe__StDec 22, 2015
Altostratus
I think you should use: HTTP::respond 302 noserver -reset Connection close Location https://google.com
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects