How to limit maximum message size?

Want to limit the maximum size of a request message.

But what is the most efficient way to obtain size of the request message?

Current solution, Javascript:

var len = context.getVariable('request.content').length;
context.setVariable('msgSize', len);

Can't find any standard variable for that.

0 0 32
0 REPLIES 0