tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ion Larranaga <ila...@s21sec.com>
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">
</FORM>

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,

   Ion


-----Mensaje original-----
De: Sonia Galilea Varea [mailto:galilea@ebro.cps.unizar.es]
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
request.

I do it by javascript:

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

I wonder what's the maximum allowed data to send with a POST command. And
the
GET?
I had a look in the RFC but didn't find any size limitation. But there is
one,
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.

    Sonia.





--
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>


--
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