JoeK_10405
Jan 16, 2009Nimbostratus
Intercept client request to fix broken app
Breakfix Needed. Client requests causes app to loop and eat all resources, and fix will take some weeks to migrate through to production. So in the meantime, I need to leverage/show off iRules in our Cisco only environment.
Client request:
> OPTIONS /storeWeb/authentication/AuthenticationServlet HTTP/1.1
Current server response:
< HTTP/1.1 401 Unauthorized
Required response:
< HTTP/1.1 200 OK
< Allow: GET, HEAD, POST, TRACE, OPTIONS
< Content-Length: 0
Current iRule, which doesn't work:
when HTTP_REQUEST {
if { [HTTP::method] contains "OPTIONS" }
if {[HTTP::uri] contains "/authentication/AuthenticationServlet/"}
{[HTTP::version] eq "1.1" }
{
HTTP::respond HTTP::version 200 noserver
HTTP::header insert Allow: GET, HEAD, POST, TRACE, OPTIONS
}
}
TIA, most appreciated