wood burning stoves 2.0*
The moose likes Servlets and the fly likes size of request data ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "size of request data ?" Watch "size of request data ?" New topic
Author

size of request data ?

Anil Kumar Saha
Ranch Hand

Joined: Apr 07, 2004
Posts: 111
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.


Regards,

Anil Kumar Saha
SCJP 1.4
http://www.agilej.blogspot.com/
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
Use the method getContentLength() of the interface ServletRequest

ServletRequest.getContentLength()


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: size of request data ?
 
Similar Threads
What is the purpose of value stack?
How to increase maximum size of data accepted?
max_length parameter
simple queries
Parameter Limit?