If you are using parameters after the URL (i.e.
page.jsp?param1=...&param2=...) then you are not performing a POST but a
GET.  According to the HTTP spec, GET requests are limited to 2048
characters (not sure why, but they are).  POST requests, on the other hand,
are not limited.  

        If you are attempting to send the data from a form, make sure that
your form has the METHOD="POST" attribute.  Also the page's ACTION attribute
must be less than 2048 characters.

        If you are attempting to send the data from a servlet to another
servlet, then you should look at the URLConnection class, I believe.  You
can find more information by searching this list's archives.

        Randy

-----Original Message-----
From: Arendsen, Alef [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 11:45 AM
To: '[EMAIL PROTECTED]'
Subject: Maximum length HTTP Request


Hi all,

I'm doing an HTTP request on a Servlet running in Tomcat 3.2.1 and I'm
encountering problems with the length. It's a POST request using parameters
after the URL. Problem is, when the request exceeds 2 Kilobyte, Tomcat won't
receive it!!! At least the HttpRequest doesn't finish so it doesn't arrive
in the Servlet.

I'm using a plain socket implementation which is working correctly until the
2k limit is reached, after that it won't work anymore!

Does anybody know ANYTHING about this???

Thnx in advance for any information...

Alef Arendsen
SmartHaven
www.smarthaven.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to