title: What header should be used for sending GZIP compressed JSON from Android Client to Server?
body: <p>This question is extension to the question <a href="https://stackoverflow.com/questions/11402813/how-to-compress-a-jsonobject-send-it-over-http-in-android">here</a>. I am using the code <a href="https://stackoverflow.com/a/7153945/932307">here</a> reproduced below to GZIP compress a <code>JSONObject</code>. </p>
  
  <pre><code>String foo = "value";
  ByteArrayOutputStream baos = new ByteArrayOutputStream();
  GZIPOutputStream gzos = null;
  
  try {
      gzos = new GZIPOutputStream(baos);
      gzos.write(foo.getBytes("UTF-8"));
  } finally {
      if (gzos != null) try { gzos.close(); } catch (IOException ignore) {};
  }
  
  byte[] fooGzippedBytes = baos.toByteArray();
  </code></pre>
  
  <p>I am using a <code>DefaultHttpClient</code> to send this compressed JSONObject to server(the code is in my control). </p>
  
  <p><strong>My Question</strong> </p>
  
  <p>What header should I use in my <code>request</code>? I am using <code>request.setHeader("Content-type", "application/json");</code> for sending JSON to server?</p>