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

enter image description here

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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -