subhadipdas / opensocial-java-client

Automatically exported from code.google.com/p/opensocial-java-client
0 stars 0 forks source link

support HTTP compression { gzip, deflate } #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

The opensocial-java-client should support HTTP compression.  Application
developers should have the freedom to turn this on or off.  

FYI - the OAuth Java library makes it easy for OAuth consumers to use gzip.

To enable compression, set a property of your OAuthConsumer:

  OAuthConsumer c = ... ;
  c.setProperty(OAuthClient.ACCEPT_ENCODING, HttpMessageDecoder.ACCEPTED);

@related http://code.google.com/p/oauth/issues/detail?id=60

Original issue reported on code.google.com by sean%sea...@gtempaccount.com on 18 Nov 2008 at 6:46

GoogleCodeExporter commented 9 years ago
Hi,

I have a question regarding gzip.
Suppose the server adds the “Content-Encoding: gzip” header.
But, the actual content is not gzipped (assuming the compression failed and it 
is sending the data without compression). What will be the impact of this?
How will http clients (especially browsers) handle this?

Thanks,
Narendra

Original comment by ssnku...@gmail.com on 5 Sep 2012 at 11:57