tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Currie" <MCur...@ncen.com>
Subject RE: How to access the Accept-Encoding header?
Date Fri, 16 Jul 2004 22:09:24 GMT
What are you using to access the page??  Internet Explorer, Mozilla, Firefox??

Mike Currie
Senior Web Developer
New Century Mortgage
Direct 949 743 7037
Mobile 949 279 4358
Fax 866 281 0360

> This electronic message transmission contains information from New Century which may
be confidential or privileged. This information is intended for the use of the individuals
or entity named in the message. If you are not the intended recipient, be aware that any disclosure,
copying, distribution or use of the contents of this transmission is strictly prohibited.
If you have received this electronic transmission in error, please notify us immediately by
telephone and delete the message from your system. Thank you.


-----Original Message-----
From: Thomas Bayer [mailto:thombayer@gmx.net]
Sent: Friday, July 16, 2004 2:57 PM
To: 'Tomcat Users List'
Subject: RE: How to access the Accept-Encoding header?


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:Yoav.Shapira@mpi.com] 
> 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:thombayer@gmx.net]
> >Sent: Friday, July 16, 2004 3:37 PM
> >To: tomcat-user@jakarta.apache.org
> >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: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message