Hi,
In http response header I am seeing "Transfer-Encoding: chunked". Each chunk comes with a header indicator on the length of chunk. While reading response from socket and appending it to
string buffer, the chunk header is also getting in as part of response. How to avoid this unwanted part (Chunk length) from getting to my final response string.
Here is the code that I use to read response from socket.
byte[] buf = new byte[1024];
while ((i = in.read(buf)) > -1) {
String s = new String(buf, 0, i);
outputBuffer.append(s);
}