[Logo]
Forums Register Login
size of request data ?
Is it possible to get the size of request data (for example x KB or y MB)in the web-server? Suppose,the request is HttpServletRequest and method is POST.
Any ideas/thoughts will be appreciated.
Use the method getContentLength() of the interface ServletRequest

ServletRequest.getContentLength()
I love a good mentalist. And so does this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature


This thread has been viewed 537 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 22, 2018 14:24:42.