[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()
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


This thread has been viewed 546 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 18, 2018 08:46:05.