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 client didn't request keepalives:
curl -v http://host.domain.com
* About to connect() to host.domain.com port 80
* Trying 10.10.10.100... connected
* Connected to host.domain.com (10.10.10.100) port 80
> GET / HTTP/1.1
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
> Host: host.domain.com:80
> Accept: */*
>
< HTTP/1.0 302 Found
< Location: https://host.domain.com/
< Server: BIG-IP
* HTTP/1.0 connection set to keep alive!
< Connection: Keep-Alive
< Content-Length: 0
* Connection 0 to host host.domain.com left intact
* Closing connection 0
Seems odd, and totally unnecessary for a redirect, so we'd like to eliminate the Keepalive option completely and close the connection immediately.
Can we somehow suppress the Connection: header?
Send Connection: Close instead?
Or do we have to do something like "reject" the connection immediately following the redirect?
if { blah }{
HTTP::redirect https://$host:$newport[HTTP::uri]
reject
return
}
???
thanks!
/deb