HeadOverFlow_32
Jul 20, 2017Nimbostratus
Solved
timeouts on specific http_request
Hi guys ! I'm tryin to make a irules that will send HTTP::respond 204 if the servers doesn't answer in X amount of time...
this is the base code (build from multiple search i did over here)..
when HTTP_REQUEST { if { ! ([http::uri] contains "/max/webapi") } { after 1000
HTTP::respond 204 } }
The point here is if the uri is something else then "/max/webapi" after X milliseconds send back 204 content unavailable...
I also tried with starts_with since this is the begining of the uri... but I keep getting connexion reset on whatever the uri is called...
Thanks guys !
I found the issue...was in my code : TCL need CAPITAL letter loll...
if { ! ([http::uri] should be if { ! ([HTTP::uri]...
Well, we learn all day !