wood burning stoves 2.0*
The moose likes Servlets and the fly likes Max size of  HTTP Posting 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 "Max size of  HTTP Posting" Watch "Max size of  HTTP Posting" New topic

Max size of HTTP Posting

Jaishankar VV

Joined: May 13, 2002
Posts: 6
1) Is there a max limit for HTTP posting.
2) I want to know the maximum amount of data that can be posted from one page to another by using HTTP post method without affecting the performance and other problems of session time outs.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

1) There is no real limit as long as you are talking about POSTing data as opposed to GET. GET has a 'safe limit' of around 255 characters. You can go over that but expect to get into trouble as you go over 1000 or 2000 characters. POST is theoretically unbounded, I have POSTed files of several megs in size, but there could possibly be configurable limits to prevent it being a hole for denial of service attacks.
2) Session timeouts are based on time and upload sizes, so if you have a small amount of data uploaded on a slow connection with a lot of processing, you may find the session times-out, whereas it might not time out with a large upload on a fast connection and no processing.
I agree. Here's the link: http://aspose.com/file-tools
subject: Max size of HTTP Posting
Similar Threads
Looking for a simple JAX-WS top down tutorial
Display in the panels
button or link action not executed inside dataTable
selectOneMenu and ajax support
JSF Navigation