if (isResponseWithBody(code)) {
OutputStream os = response.getResponse().getOutputStream();
InputStream is = connection.getInputStream();
if (chunked) {
is = new ChunkedInputStream(is);
} else {
is = new ContentLengthInputStream(is, contentLength);
}
byte[] buffer = new byte[8192];