Hi all,

How do I use HttpServletResponse.setContentLength() to support persistent
(keep-alive) HTTP connections (I heard this helps slightly speed up surfing,
as the same connection is re-used)?

What is the purpose for Content-Length?




> http://www.w3.org/Protocols/HTTP/Object_Headers.html#content-length
>
> Content-Length: int
> Implies that the body is binary and should be read directly from the
> communications link, without parsing lines, etc. When the data is part
> of the request, prevents the escaping and de-escaping of the
> termination sequence .
>
> @@@ This should be part of the MIME header, as it applies to any binary
> encoded part. Note HTML is the first internet protocol to allow MIME
> "binary" encoding. In MIME, the use of Content-Length is currently
> allowed only for external messages.

Can someone explain the above to me?



Regards,
Daniel

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to