Forum Discussion
ka1021
Oct 21, 2021Altostratus
Hello Ahmed,
i guess there are some extra spaces between "}" and "elseif".
when HTTP_REQUEST {
if { ([string toupper [HTTP::method]] equals "POST" ) or ([string toupper [HTTP::method]] equals "PATCH" ) or ([string toupper [HTTP::method]] equals "DELETE" ) } {
node XXXXXXX XX
} elseif { [string toupper [HTTP::method]] equals "GET" } {
pool XXXXXX
} else {
HTTP::respond 405 content {
<html>
<head><title>HTTP Request denied</title></head>
<body>Your HTTP requests are being throttled.</body>
</html>
}
}
}