Brian_107072
Jan 24, 2011Nimbostratus
HTTP::respond 408 content not working for Firefox
Greetings fellow iRule coders,
We want our BigIP to display status pages, either intercept status codes form servers or serve status pages for specific requests.
We have it all working except for the 408 status code. When we serve a 408 status code Firefox displays "The connection was reset" while IE displays the 408 status page. Any idea why this happens with firefox and how to work around it?
We are on BigIP 9.4.8
Example of the iRule:
switch -glob $respStatus {
400 -
401 -
403 -
404 -
408 -
500 -
503 { HTTP::respond $respStatus content $err($respStatus) }
}
The variable "$err($respStatus)" contains the html to be displayed as the status page.
I have tried duplicating the 408 html with the 404 and that made no difference. So I have ruled out the actual html as the culprit. I assume it has something to do with how the browser handles a 408 status code.
Debugging shows that firefox seems to go into a loop requesting the same page 10 times then it displays the error page. IE requests the page once and acts as expected.
Any assistance would be appreciated.