Hi,
Use a construct like:
Enumeration e =
((HttpServletRequest)request).getHeaders("Accept-Encoding");
You can use the CompressionFilter that ships with tomcat's examples.
Yoav Shapira
Millennium Research Informatics
>-----Original Message-----
>From: Thomas Bayer [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 16, 2004 3:37 PM
>To: [EMAIL PROTECTED]
>Subject: How to access the Accept-Encoding header?
>
>Hi,
>
>I want to use gzip compression. In order to do this the connector, a
filter
>or a servlet have to access the Accept-Encoding HTTP header field. But
the
>accept encoding is not accessible. Instead, there is a header like:
>---------------= ---
>The dashes correspondent to characters in the header.
>Why is the header field inaccessible? How to retrieve that field?
>
>Thomas.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or privileged. This
e-mail is intended only for the individual(s) to whom it is addressed, and may not be
saved, copied, printed, disclosed or used by anyone else. If you are not the(an)
intended recipient, please immediately delete this e-mail from your computer system
and notify the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]