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 <[EMAIL PROTECTED]>: > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]