2 Replies Latest reply on Oct 31, 2013 8:28 AM by Bartosz Bodzon

    Rho::Network gzip and json

    Bartosz Bodzon


      I am currently having a restful service which serves its responses as gziped json. Unfortunately it seems that response that I get in 'body' is string representation instead of raw data - hence my content is truncated.

      The zlib seems to be supported on Rho so maybe I am missing something.


      My request headers: 

      Content-Type: application/json

      Accept-Encoding: gzip,deflate,sdch

      + basic authentication


      The response headers service is providing:

      Cache-Control: private

      Content-Type: application/json; charset=utf-8

      Content-Encoding: gzip

      Vary: Accept-Encoding