Apache 2:

I have a requirement to look at content length and if it is greatar
than desired size then return error message. So psuedo code is like:

if content_length > 32G
then
   if url contains /abc/
   then
       echo "0|abc|Bad length" # pipe delimited format that some
clients api support
   else if url contains /def/
       echo "<xml><message>Bad request</message><xml>" # client supporting XML
   fi
fi

I first thought of using LimitRequestBody but that didn't work for me.
So now I am thinking if I can use filter or handlers. Does anyone know
if I can use filters that is read the lenght and the url and then
return the response instead of continuing down the chain.

P.S. Note: Our requests are mod-jk requests. So if content length
check succeeds then hand over the request to mod jk workers wihch then
send it to jboss app server.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to