tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ion Larranaga <>
Subject RE: HTTP POST request: maximum allowed data?
Date Thu, 15 Nov 2001 10:24:52 GMT
In your example you are not using the POST method.

Any time you see a URL with the ? character in it, it means you are sending
data with the GET method. The GET method allows parameters, but has a size
limitation, as you have seen.

If you want to make sure you are using the POST method you have to use a
form, something like:

<FORM NAME="form1" ACTION="../servlet/myServlet" METHOD="post">
	<INPUT TYPE="hidden" NAME="query" VALUE="myquery">

When you want to send the data you have to use javascript to change the
value of the hidden field to what you want and submit the form. This way you
can be sure that the data will be sent using POST.

Hope it helps,


-----Mensaje original-----
De: Sonia Galilea Varea []
Enviado el: jueves, 15 de noviembre de 2001 10:57
Para: Tomcat Users List
Asunto: HTTP POST request: maximum allowed data?

Hi all,

I have to tranfer data from a html form to a servlet, by using the HTTP POST

I do it by javascript:

myWin ="../servlet/myServlet?query="+myQuery);

I wonder what's the maximum allowed data to send with a POST command. And
I had a look in the RFC but didn't find any size limitation. But there is
because I get an exception
if my URL is too large...

Is there a way to setup the web server (I'm currently using Tomcat
standalone 3.2.1) to accept more data?

Thanks for any info.


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message