I am writing a Restlet application on GAE similar as described here: First Application
I am sending back a JSON represntation of an entity, and this works. But I am so far unsuccessful in sending the response compressed.
I tried to add to request an accept-encoding header with "gzip". but that didn't help. Here is how i tested it:
URL url = new URL(address); URLConnection urlConn = url.openConnection(); urlConn.setRequestProperty("Accept-Encoding", "gzip"); InputStream openStream = urlConn.getInputStream();
Any ideas would be very much appreciated!