tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Einfeldt" <ralph.einfe...@uptime-isc.de>
Subject AW: 64k limit on POST variables?
Date Wed, 30 Jan 2002 13:17:17 GMT
AFAIK there is no limitation in apache.

I don't think that there is a limitation in tomcat or 
one of the connectors.

How do you recognize this limitation ? (After getParameter ?)
Is it dependend on the size of the form or the size of single
fields?

Make following test: (This code hasn't seen a compiler so 
there might be some errors, but I hope you get the idea.)

<% if (request.getParameter("doTest") != null) {
     for (int i = 1; i < 12; i++) { %>
       <%= i %>:
       <%= request.getParameter("test" + i).length() %>
       <br>
<%
     } 
   } else {
%>
<form method="post" action="<your-jsp>">
<input type="hidden" name="doTest" value="1">
<%
     // Ten fields with 10000 bytes each
     for (int i = 1; i < 11; i++) {
%>
<textarea name="test<%= i %>"><%
       for (int j = 0; j < 1000; j++) {
         %>01234567890<%
       }
%></textarea>
<%
     }
     // One Field with 100000 bytes
%>
<textarea name="test11"><%
     for (int j = 0; j < 10000; j++) {
       %>01234567890<%
     }
%></textarea>
  <input type="submit">
</form>
<%
   }
%>


> -----Urspr√ľngliche Nachricht-----
> Von: Lars Andersen [mailto:lars@jatak.com]
> Gesendet: Mittwoch, 30. Januar 2002 13:47
> An: Tomcat Users List
> Betreff: Re: 64k limit on POST variables?

> >>>I have some forms set up that can accept a rather large amount of
> >>>data, and I'm finding that my data is getting truncated after 64k.
> >>>
> >>>What is causing this limitation?  I can't find anything on the web
> >>>about POST variables being limited by the SPEC.  Is this a tomcat
> >>>thing?  and is there any way that it can be changed?
> >>>
> >  
> 
> 
> There is most likely such a limit in Tomcats webserver.
> I encountered the same in apache at 8192 bytes.
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message