Forum Discussion
James_Ramsey_10
Nimbostratus
Jul 15, 2005JRUN - Error from Server
I am new to F5, and I want to write an I-Rule to detect 3 JRUN Errors, and then fail the server. How would I do this..
Thanks
Jul 19, 2005
So you are looking for error codes in the connection from the client to the server? Usually error codes are responses from the servers. If this is the case, you can do a HTTP::collect in the HTTP_REQUEST event. This will trigger the HTTP_REQUEST_DATA event to be called when the system has collected the specified amount of data from the client. You can then access the HTTP::payload and search as you would with any other string.
How and what you set the collect size to depends on what protocol the error is coming across on. With HTTP, you can use the Content-Length header (if it exists).
Please verify that the error does indeed come from the client (the request) and not the server (the response) and we can provide you a snippet of code to do the work. Or you could just search the forums for HTTP::collect and you'll find some examples yourself.
-Joe
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
