title: Java: Gzip string to output string
body: <p>How do I take a string and use something like <a href="http://ermalaev.spb.ru/j2se/1.4.2/docs/api/java/util/zip/GZIPOutputStream.html" rel="nofollow noreferrer">GZIPOutputStream</a> to gzip the string and then output the zipped content as a string.  </p>
  
  <p>My intention is to transfer the zipped content as a post variable through HTTP.</p>