Forum Discussion
sirad_85122
Nimbostratus
Apr 08, 2010Two Connection: close in HTTP response header.
Hi guys,
I have problem with HTTP::respond method. My I rule looks like:
when HTTP_REQUEST {
set uri [HTTP::uri]
if { not ($uri starts_with "http") } {
set uri "http://$uri"
}
set method [HTTP::method]
set host [URI::host $uri]
set port [URI::port $uri]
if { [matchclass [string tolower $host] contains $::proxy_uri] } {
HTTP::respond 302 Location $uri "Connection" "close"
}
}
but, I'm receiving in response:
HTTP/1.0 302 Found
Location: http://counter.softline.com.pl/
Connection: close
Server: BigIP
Connection: close
"Connection: close" header exists twice in HTTP header response. I'd like browser to reopen new TCP connection to server. When I use " HTTP::respond 302 Location $uri" get "Connection: Keep-Alive" in response.
I'm using BIGIP 9.3.1
Is it a bug or I'm doing something wrong?
Thanks for any advice.
Adam
- hoolio
Cirrostratus
Hi Adam,HTTP::respond 302 Location $uri TCP::close
- J_C_13164Historic F5 AccountThere does appear to be some oddness with HTTP::respond and the headers in 9.3.1, though this works as expected in 9.4.8.
TCP::respond "HTTP/1.1 302 Found\r\nLocation: $uri\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"
- hoolio
Cirrostratus
This is actually described in SOL8960:
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