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. 192.168.52.52:80) using iRule.
Is it possible to implement an iRule like this using HTTP response code to restrice traffic to a particular server?
Thanks & Regards,
AJ
- Deb_Allen_18Historic F5 Accountsort of a chicken & egg scenario there... you can't get the server response status code without first sending it the request...
- wolfpack_98881
Nimbostratus
You could apply a ECV monitor to the pool which requires a 200 response from the server. If you don't know what request the client is going to send, then you can't really create an ECV for it. - Colin_Walker_12Historic F5 AccountI agree with Deb here, this is a chicken and egg scenario.
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