我正在尝试从使用 HttpClient 4.3 发送单独 gzip 压缩块的服务器获取数据,但 HttpEntity 内容似乎只包含第一个块的解码值。如何获得未压缩的后续块?
final CloseableHttpClient httpclient = HttpClients.createDefault();
final HttpGet method = new HttpGet(url.toString());
method.addHeader("Accept-Encoding", "gzip");
final CloseableHttpResponse response = httpclient.execute(method);
return response.getEntity().getContent();