Forum Discussion
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 wor...
Colin_Walker_12
Jan 25, 2011Historic F5 Account
It indeed sounds like a bug or questionable behavior in FireFox that is preventing you from displaying the desired status code (408: Request timed out) page. If you want to go the rewrite route it shouldn't be terribly hard, you'd just have to change the switch a little bit:
switch -glob $respStatus {
400 -
401 -
403 -
404 -
500 -
503 { HTTP::respond $respStatus content $err($respStatus) }
408 { HTTP::respond 400 content $err($respStatus)}
}
This would of course make your 408s return as 400s, but the user would get the appropriate message since you're custom formatting that anyway. The browser would just read the response as a 400 and likely stop giving the error you're seeing.
I'm not sure if that's a viable solution or not, but it would likely work around the problem.
Colin
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