Welcome to the Xceed Community | Help
Community Search  
More Search Options

HTTP Response decompression: Content-Encoding: gzip

Sort Posts: Previous Next
  •  03-03-2006, 3:41 AM Post no. 6256

    HTTP Response decompression: Content-Encoding: gzip

    Hello,

    I try to create a program that decompresses a gzip encoded response from a webserver using the Xceed Streaming Compression Library. The response of the webserver looks like this:
    Fertig: HTTP/1.1 200 OK
    Date: Fri, 03 Mar 2006 08:35:06 GMT
    Server: Apache/1.3.33 (Unix) mod_gzip/1.3.26.1a
    Last-Modified: Wed, 16 Nov 2005 01:14:40 GMT
    Connection: close
    Content-Type: text/html
    Content-Encoding: gzip
    Content-Length: 2001

    Μçw^“Ù–Ϗ¯~¾8a§W?œ³‹— ( + more of that binary stuff)

    But which format is this? Do I have to convert the body into a binary array or how could I decompress it? My program raises errors like "The header size doesn't match with the actual size".

    Thanks,
    Thomas
  •  03-03-2006, 10:26 AM Post no. 6257 in reply to 6256

    Re: HTTP Response decompression: Content-Encoding: gzip

    That binary stuff is the compressed data. That's what you need to decompress (after the empty line). Can you share with us the code you're trying to use?
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.