KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to gzip responses from GAE server, but receive null in Content-Encoding. I have the following code: connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type", "application/json; charset=utf-8"); //"application/json; charset=utf-8" connection.setRequestProperty("Accept-Encoding", "gzip"); connection.setRequestProperty("User-Agent", "gzip"); connection.setUseCaches (false); connection.setDoInput(true); connection.setDoOutput(true); //write //read System.out.println("Content-Encoding " + connection.getContentEncoding()); I've read that on GAE servers do compressing automatically. So what can be the problem?
Tags (comma-separated)
Save Edits
Cancel