How to uncompress HTTP GZIP data



Hi,

Following is the response header from IIS:

HTTP/1.1 200 OK
Cache-Control: no-cache
Connection: close
Date: Mon, 19 Dec 2005 21:00:17 GMT
Pragma: no-cache
Content-Type: text/html
Expires: Wed, 01 Jan 1997 12:00:00 GMT
Server: Microsoft-IIS/6.0
P3P: CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
Content-Encoding: gzip
Vary: Accept-Encoding
Transfer-Encoding: chunked

The http data was captured from all of the TCP packets in sequence, and
saved to a .Z file. The file will not uncompress using GUNZIP utility.
I opened the .z file in a hex editor, and was able to see that the
header does not begin with the magic header for gzip files. I fixed
that, but it still doesn't work.

HOW COULD I UNCOMPRESS THE CAPTURED HTTP DATA?

thanks much for all your help!

.



Relevant Pages

  • How to uncompress HTTP GZIP data
    ... Following is the response header from IIS: ... Content-Type: text/html ... header does not begin with the magic header for gzip files. ... HOW COULD I UNCOMPRESS THE CAPTURED HTTP DATA? ...
    (comp.lang.perl.misc)
  • Re: How to uncompress HTTP GZIP data
    ... The file will not uncompress using GUNZIP utility. ... > header does not begin with the magic header for gzip files. ... > HOW COULD I UNCOMPRESS THE CAPTURED HTTP DATA? ...
    (comp.lang.perl.misc)
  • Re: Controlling Javascript from server side
    ... ECMAScript in Opera, KJS ECMAScript in Konqueror, and JavaScriptCore ... That would make the HTTP request invalid, as the header name "Content-Type" ...
    (comp.lang.javascript)
  • Re: How to set content-type header for ASP/HTML pages only ?
    ... The right way to do this association is with a MIME-Type (IIS can configure ... set the value of the Content-Type header on a per-extension basis. ... I would like to set the content-type HTTP header for Content-Type. ... Is there any way to set the Content-Type specific to file type? ...
    (microsoft.public.inetserver.iis)
  • Re: I wanna decompress a *.gz file
    ... The original file name may or may not be stored in the gzip header. ... is stored after the ten byte header as a zero-terminated string. ... that contains the length of the remainder of the extra field, ...
    (comp.compression)