RE: GZip compression in 4.1.27 ..

2004-10-25 Thread Shapira, Yoav

Hi,
You wouldn't even have to write such a filter, tons of them are freely
available online, see Google...

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>Sent: Monday, October 25, 2004 12:35 PM
>To: Tomcat Users List
>Subject: Re: GZip compression in 4.1.27 ..
>
>I'm not 100% sure of this, but I don't think GZIP compression was added
to
>the
>connector until Tomcat 5.0.xx.  Look at the appropriate docs to verify
>this.
>Either way, you can always write a servlet filter to do the
compression.
>This
>way you don't have to worry about whether Tomcat (or any other app
server)
>natively supports gzip compression.
>
>Jake
>
>Quoting Ben Bookey <[EMAIL PROTECTED]>:
>
>>
>> Dear Ladies and Gentlemen,
>>
>> This is a follow-on for a question from last week, but as its now on
a
>> "different-page" of the mailing list. I decided to
>> post another new questions, so no-one misses it.
>>
>> 1) Below is an original extract of my tomcat 4.1.27 server.xml.  I
want
>to
>> enable compression in my HTTP connector.
>> I have a customer with v. low bandwidth. I have read the Apache
readme
>> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html on
>this,
>> but I am still not 100% clear.
>>
>>
>> Would I be right in understanding that *ALL* I need to do (in the
case of
>TC
>> 4.*) is add the following attribute compression="on" ???
>>
>>
>> 
>> > port="8080"   minProcessors="5" maxProcessors="75"
>>enableLookups="true" redirectPort="8443"
>>acceptCount="100" debug="0" connectionTimeout="2"
>>useURIValidationHack="false"
disableUploadTimeout="true"
>/>
>> 
>>
>>
>> 2)  Any suggestions on a way of testing this in our high bandwidth
>> environment first ?
>>
>> regards
>>
>> Ben
>>
>>
>> -
>> 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]




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]



Re: GZip compression in 4.1.27 ..

2004-10-25 Thread Jacob Kjome
I'm not 100% sure of this, but I don't think GZIP compression was added to the
connector until Tomcat 5.0.xx.  Look at the appropriate docs to verify this. 
Either way, you can always write a servlet filter to do the compression.  This
way you don't have to worry about whether Tomcat (or any other app server)
natively supports gzip compression.

Jake

Quoting Ben Bookey <[EMAIL PROTECTED]>:

>
> Dear Ladies and Gentlemen,
>
> This is a follow-on for a question from last week, but as its now on a
> "different-page" of the mailing list. I decided to
> post another new questions, so no-one misses it.
>
> 1) Below is an original extract of my tomcat 4.1.27 server.xml.  I want to
> enable compression in my HTTP connector.
> I have a customer with v. low bandwidth. I have read the Apache readme
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html on this,
> but I am still not 100% clear.
>
>
> Would I be right in understanding that *ALL* I need to do (in the case of TC
> 4.*) is add the following attribute compression="on" ???
>
>
> 
>  port="8080"   minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0" connectionTimeout="2"
>useURIValidationHack="false" disableUploadTimeout="true" />
> 
>
>
> 2)  Any suggestions on a way of testing this in our high bandwidth
> environment first ?
>
> regards
>
> Ben
>
>
> -
> 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]



Re: GZip compression in 4.1.27 ..

2004-10-25 Thread Dave Been
I posted last week I tried compression="on" compression="force" and 
compression="5" for compress output if > 5 bytes without any success.
Note that your client must send the header "Accept-encoding: gzip" for a 
web server to consider you as able to consume it.  i use

 "Accept-encoding: gzip, compression", e.g.
httpConn.setRequestProperty("Accept-Encoding", "compress, gzip")

I'm using a pure java client using the standard java.net API and it is not 
working for me.
We communicate with POST, not GET, and our typical response packet size is 
> 2k up to 5Meg.

Another person in our group got Httpd 2.0 configed to do this, but with 
another web server.  I use tomcat, so .
Next step is probably to build tomcat and try to figure out what its 
problem is (in eclipse).

Is your client Java?   i suppose i could write a small test app/servlet. 
would that be useful?

Dave Been




"Ben Bookey" <[EMAIL PROTECTED]>
10/25/2004 12:53 AM
Please respond to "Tomcat Users List"
 
        To: "Tomcat User List" <[EMAIL PROTECTED]>
cc: 
Subject:GZip compression in 4.1.27 ..



Dear Ladies and Gentlemen,

This is a follow-on for a question from last week, but as its now on a
"different-page" of the mailing list. I decided to
post another new questions, so no-one misses it.

1) Below is an original extract of my tomcat 4.1.27 server.xml.  I want to
enable compression in my HTTP connector.
I have a customer with v. low bandwidth. I have read the Apache readme
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html on 
this,
but I am still not 100% clear.


Would I be right in understanding that *ALL* I need to do (in the case of 
TC
4.*) is add the following attribute compression="on" ???







2)  Any suggestions on a way of testing this in our high bandwidth
environment first ?

regards

Ben


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




GZip compression in 4.1.27 ..

2004-10-25 Thread Ben Bookey

Dear Ladies and Gentlemen,

This is a follow-on for a question from last week, but as its now on a
"different-page" of the mailing list. I decided to
post another new questions, so no-one misses it.

1) Below is an original extract of my tomcat 4.1.27 server.xml.  I want to
enable compression in my HTTP connector.
I have a customer with v. low bandwidth. I have read the Apache readme
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html on this,
but I am still not 100% clear.


Would I be right in understanding that *ALL* I need to do (in the case of TC
4.*) is add the following attribute compression="on" ???







2)  Any suggestions on a way of testing this in our high bandwidth
environment first ?

regards

Ben


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