Ok, thnx so far, but I'm 100% sure I'm using a post. It's not a form, but
I'm using my own socket impl. of the http protocol to make it support
timeouts and stuff...
here it is, this is what I'm sending through the outputstream of the socket.
The GET-requests all get redirected to www.smarthaven.com and the post
request are actually executed. All the time when I'm using a length that
doesn't exceed 2048 it actually works, when the length begins to exceed
2048, it doesn't work anymore, SO IN FACT, IT SEEMS THERE'S ALSO A
LIMITATION ON THE POST?????? (at least in Tomcat???????). Somehow the last
two <CRLF> don't arrive (get truncated) and the request isn't passed
through....
ANY IDEAS???????
thnx,
Alef Arendsen
www.smarthaven.com
POST /xmlserver/EntryPoint?bla=bla&blie=blie<CRLF>
HTTP/1.1<CRLF>
Content-Length:0<CRLF>
<CRLF>
My servlet looks like this:
protected void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, java.io.IOException {
response.sendRedirect("http://www.smarthaven.com");
}
protected void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, java.io.IOException {
// DO SOMETHING (the actual logic, here it DOESN'T arrive anymore if
the request is > 2048)
}
> -----Original Message-----
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 12, 2001 5:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Maximum length HTTP Request
>
>
>
> If you are using parameters after the URL (i.e.
> page.jsp?param1=...¶m2=...) 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]