tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saminda Abeyruwan <sami...@opensource.lk>
Subject Re: HttpServletResponse's getOutputStream() methtod.
Date Tue, 06 Sep 2005 12:11:43 GMT
Tim Funk wrote:

> If you want to disable chunked encoding - you need to determine how 
> much data you will send so setContentLength can be called.
>
> -Tim

Hi Tim,

Thanks for the reply,

Is it something like,
response.setContentLength(1000);
OutputStream out = response.getOutputStream();

Yet, i would like to have a outputsteam without any chunking at all.

Saminda


>
> Saminda Abeyruwan wrote:
>
>> Hi all,
>>
>> I'm using tomcat 5.0.28 in Linux environment.
>>
>> In doPost(...) method i'm asking HttpServletResponse's output 
>> stream.  Tomcat provide me with
>> *org.apache.coyote.tomcat5.CoyoteResponseFacade *getOutputStream(), 
>> which gives me a chunked output stream.  Providing  a chunked output  
>> stream  limited the flexibility of  interoperability with other 
>> systems, which would not support chunked stream.
>>
>>
>> Could someone pls sujest me a work around to get through with it. To 
>> get a standard outputStream out of prior rather a chunked output stream.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message