Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5126

Axis 2 Server response is not compressed when requested to be

    XMLWordPrintableJSON

Details

    Description

      Hello,

      Axis2 (server side) is not sending a compressed response to my Axis2 (client) When I set MC_ACCEPT_GZIP to true. The request is compressed, but never the response (verified with a local proxy).

      Options options = stub._getServiceClient().getOptions();
      options.setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.TRUE);
      options.setProperty(HTTPConstants.MC_GZIP_RESPONSE, Boolean.TRUE);
      options.setProperty(HTTPConstants.MC_ACCEPT_GZIP , Boolean.TRUE);
      options.setProperty(HTTPConstants.COMPRESSION_GZIP, Boolean.TRUE );

      I've searched and found another issue where it was suggested that adding CHUNKED=false was needed for compression. However when I add
      options.setProperty(HTTPConstants.CHUNKED, Boolean.TRUE);
      I get a message back that says "Not in GZIP format"

      Is this a bug or am I doing something wrong with my request.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bthorington Brent Thorington
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: