You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Krish B <ww...@gmail.com> on 2006/08/22 11:35:00 UTC
Restriciting maximum post size in Tomcat
I set the maxPostSize=1000 in the server.xml and started the server.
If i post > 1000 i dont get a error.
(
<Connector port="8080" maxPostSize="1000" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"/>
)
How to get this feature to work. I have searched all over the place
and dont have answers.
I have tried 5.5.17 & 15 tomcat.
I use a FORM to POST a file of large size.
Thanks for any help
Rgds
Krish
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Restriciting maximum post size in Tomcat
Posted by Krish B <ww...@gmail.com>.
hi ,
this works. I had set wrong encoding in the FORM. It should be
application/x-www-form-urlencoded
Tx,
Krishnakumar
On 8/22/06, Krish B <ww...@gmail.com> wrote:
>
> I set the maxPostSize=1000 in the server.xml and started the server.
> If i post > 1000 i dont get a error.
> (
> <Connector port="8080" maxPostSize="1000" maxHttpHeaderSize="8192"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" redirectPort="8443" acceptCount="100"
> connectionTimeout="20000" disableUploadTimeout="true"/>
> )
>
> How to get this feature to work. I have searched all over the place
> and dont have answers.
>
> I have tried 5.5.17 & 15 tomcat.
>
> I use a FORM to POST a file of large size.
>
> Thanks for any help
>
> Rgds
> Krish
>