"Ivan�o, Maro�" wrote:
> 
> does anybody know whether is possible to send to browser (IE,
> Netscape) compressed html content from server?
> 

 I'm assuming you want the browser to display the HTML 
and not just save it to a file, right?

 If so, the answer is "sometimes". The browser can signal
to the server through the "Accept-Encodings" request header.
You can't just assume that all browsers will know what to
do with gzip'ed content.

 The HTTP spec (rfc2616) isn't as easy to read as the
Servlet spec, but it's the final authority on how this
sort of thing should work, so you should probably take
a look at it (Section 14.3 especially)

 Do a quick google search (http://www.google.com) and
you will probably find some detailed step-by-step
instructions. Don't worry if they aren't specifically
servlet based, the general principals are the same:
check the request headers, set up the response headers,
gzip up the html using java.util.zip.*, etc.


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
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