Skip to main content

I could not parsed a HTTP packet, somebody help!

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2012-01-08

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 " incomplete dynamic bit lengths tree
at Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at Source)
at Source)
at Source)
at org.apache.http.util.EntityUtils.toString("

3. System.out.println(EntityUtils.toString(entity));
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 !