java - glassfish response not getting in gzip compressed -
i working on java netbeans ide , glassfish 3.1.2 have created in rest services using jaxrs. when request client made ,i need send json data in compressed format.to have enabled compression in glassfish shown following picture
but response got server not compressed using gzip. receiving normal json data. should overcome issue
this solution gf 3.1.2.2.
responses http requests in version 1.0 not compressed. must send requests in http 1.1 gzipped responses glassfish server.
more over, must add header "accept-encoding: gzip" in http requests.
Comments
Post a Comment