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" ???


    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080"               minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout 
value
     to -1 -->


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]


Reply via email to