Gerdes, Tom wrote:
FINE >> "Accept-Encoding: gzip, deflate[\r][\n]"

Why are you sending this in the first place? Stock HttpClient does NOT handle any content encoding.

FINE << "Content-Encoding: gzip[\r][\n]"

In your case this should do the trick:

InputStream in = method.getResponseAsStream();
Header enc = method.getResponseHeader("Content-Encoding");
if (enc != null && "gzip".equals(enc.getValue())) {
  InputStream in = new GZIPInputStream(in);
}


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to