struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Belingueres" <belingue...@gmail.com>
Subject Re: [struts] Stream Windows Executable From Linux Machine
Date Mon, 08 Sep 2008 16:31:32 GMT
Thanks Dale!
I actually just sniffed my connection and Tomcat is adding the
Content-Length by itself when attachment.
On the other hand, is not adding the Content-Length when content
disposition is inline.

2008/9/8 Dale Newfield <Dale@newfield.org>:
> Gabriel Belingueres wrote:
>>
>> I wonder if all that MIME descriptive data in the HTTP response is
>> part of the "message body", and if that's the case, I suppose it is
>> better always NOT specify any content length at all in the stream
>> result.
>
> If you do not specify the content length in the stream result, your stream
> will be requested twice (each request is required to provide an independent
> stream -- a frequent source of bugs for people that don't realize it), one
> of which will be read through it's entirety just to find the length, the
> other will be used to actually send out the data.
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Mime
View raw message