Hi,
I have done this and I get every header but the "Accept-Encoding" header.
When I print out the names of all the headers, I get all the header names
but instead of "Accept-Encoding" I get:

Content-Type
---------------
Pragma
...

I tried Tomcat 5.0.25, Tomcat 4.0.6 and Jetty 4.2.2 and it was always the
same. We even tried a new setup on a different computer. There must be some
logic changing the header but I want to know where and why.

Thomas



> -----Original Message-----
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 16, 2004 3:51 PM
> To: Tomcat Users List
> Subject: RE: How to access the Accept-Encoding header?
> 
> 
> 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]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to