Forum Discussion
AJ_6093
Nimbostratus
Jan 15, 2009Restricting HTTP traffic to the server by checking status code 200
Hi
I want to check the HTTP response status code from server for a HTTP request. If the response status code is not 200 then I want the HTTP request not to hit a particular server (e.g...
Colin_Walker_12
Jan 16, 2009Historic F5 Account
I agree with Deb here, this is a chicken and egg scenario.
How can you know what the response code is before your request has been processed?
If you want to stop certain requests from getting to certain servers, that's doable. And if you want certain response codes not to go back to the client, also doable. You could even watch for response codes and depending on the server's response, you could stop any other requests like the one that created that response code from going back to that server (though that would be an interesting iRule and probably pretty resource intensive due to saving every request/response pair until inspected...it's possible). But there's just no way to know what the response code is going to be until the request is processed.
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
