Saturday, August 28, 2010

[android-developers] Content-Encoding: gzip,deflate

Hi All,

I am using the Apache HttpClient and added the header "Accept-
Encoding" and "gzip,deflate". But when I check the header of the
response I always get the Content-Encoding header as empty.

In the header array of the response I can see that "Content-Type:
application/xml; charset=utf-8" as one of the value.

My questions are:

a) Is there a way to check whether a server support gzip content
encoding?
b) If no, how can I find out from Apache HttpClient whether the
content received is in gzip content encoding?

Please help.

Thanks & Regards,
Arpit.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate