What I've tried to do is implement a servlet filter with such code:
int up = request.getContentLength();
if ( ( (HttpServletRequest) request ).getQueryString() != null )
{
up = Math.max( up, ( (HttpServletRequest) request ).getQueryString().length() ) ;
}
int down = ( (HttpServletResponse) response ).getBufferSize();
processIO( up, down );
But, while the up vaue is largely OK, the down value is 8192 for every request.
Any hints appreciated, Ro