tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Servlet with POST Request
Date Sat, 16 Dec 2006 20:46:57 GMT
If you don't send a Content-Length, then you need to use 'Transfer-Encoding: 
chunked'.  Otherwise Tomcat (or any other HTTP/1.1 server) has no way of 
knowing when the request body ends, and the next request begins.

"Scott Carr" <scarr@progbits.com> wrote in message 
news:45833AB7.6000907@progbits.com...
> Does a servlet require the use of a Content-Length for the Reader to be 
> populated?
>
> I trying to use Tomcat instead of writing my own Socket Server.  I have a 
> set of lines that I am trying to parse, but I don't have any idea how much 
> is going to be sent up front.
> It may be 1000Kb, or it may be several Megabytes worth of information, and 
> I want to read each line as they come in, and handle the request on a line 
> by line basis.
>
> Any ideas on this?  ... Should I write my own socket server?
>
> Thanks
>
> -- 
> Scott Carr
> OpenOffice.org
> Documentation Co-Lead
> http://documentation.openoffice.org
>
>
> ---------------------------------------------------------------------
> 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
>
> 




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


Mime
View raw message