Forum Discussion
Hamish
May 20, 2010Cirrocumulus
Posted By Dario on 05/20/2010 07:37 AM
Hi,
found a solution which works:
CLIENT_ACCEPTED {
if { [active_members POOL_NAME] < 1 } {
TCP::respond "HTTP/1.1 302 Found\r\nServer: webserver\r\nLocation: http://URL\r\nAccept-Ranges: none\r\nConnection: close\r\nContent-Length: 0\r\n\r\n\r\n"
TCP::close
}
}
}
Thanks all for the replies.
Dario
Ahh.... It's possible that firefox is waiting for content... Because your original response had a header, and then nothing for response body... Now you're sending a CL header of 0, and an extra EOL... I wonder if it's the extra EOL or the CL header that firefox really wanted...