[ 
https://issues.apache.org/jira/browse/AXIS2-3929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989396#comment-12989396
 ] 

Charles Galpin commented on AXIS2-3929:
---------------------------------------

I am seeing the same problem with version 1.5 on windows. Can someone confirm 
that all one should need to do to get a gzipped response is have the client add 
the header 'Accept-Encoding: gzip'?

For example

wget --server-response --header 'Accept-Encoding: gzip' http://my/service

Does not get a gzipped response (nor 'Content-Encoding: gzip' in the server 
response header)

thanks,
charles


> Accept-Encoding: gzip, MC_GZIP_REQUEST not observed, response not gzipped
> -------------------------------------------------------------------------
>
>                 Key: AXIS2-3929
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3929
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.4
>         Environment: Java 1.5.0_11, 1.6.0_07, Windows XP SP2, Tomcat 5.5.23 
> or SimpleServer
>            Reporter: Andreas Schoedl
>            Priority: Minor
>
> Sending gzipped requests with Header "Accept-Encoding: gzip" return an 
> ungzipped response.
> (Even when explicitly setting 
> options.setProperty(HTTPConstants.MC_GZIP_RESPONSE, Boolean.TRUE);
> ).
> Testcase: Add following lines to 
> samples\mtom\src\sample\mtom\client\Client.java after line 90 and run sample 
> as described in the README.txt.
> Options options = serviceStub._getServiceClient().getOptions();
> options.setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);
> options.setProperty(HTTPConstants.MC_ACCEPT_GZIP , Boolean.TRUE);
> Watch in tcpmon how the request is now gzipped, but the response isn't.
> I thought I'd read on the users list "if the server receives gzip, it 
> responds with gzip", so it really should?
> My Tomcat is configured with compression=on, which doesn't seem to make a 
> difference. 
> And it's still the server used in the sample that wouldn't respond with gzip.
> What am I missing?
> Best regards, 
> Andreas

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to