I could not parsed a HTTP packet, somebody help!
I got a unparsed http packet , the content of it should be a readable text with some floats and strings. The Content-type shows "application/zip", I try to use JDK and Httpclient4's way to parse it but it's still a pazzle to me, the fellowing four styles were what I've tried these days:
1. new ZipInputStream(entity.getContent());
read() return -1
2. System.out.println(EntityUtils.toString(new DeflateDecompressingEntity(entity)));
I got "java.util.zip.ZipException: incomplete dynamic bit lengths tree
at java.util.zip.InflaterInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.Reader.read(Unknown Source)
result is a zip seemed text , see the File attachments if you want
4. GZipInputStream could not open it either
That's really struck me, could any one help, thanks in advance !