Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2008 Jul : how to get whole gzip package and decompress it

www.cryer.info
Managed Newsgroup Archive

how to get whole gzip package and decompress it

Subject:how to get whole gzip package and decompress it
Posted by:"victorzou" (victor.z..@hotmail.com)
Date:Wed, 16 Jul 2008 19:28:59 -0700 (PDT)

hi,all
    My vc6  application of wininet need uncompress the gzip package
get from website. I get the gzip package and save as 'xxx.gz' ,and
then unzip with winrar application ,but I get two prompt error.
1.unpredictor compress file trailer
2.crc error

there are some question
1.  My gzip package is not  intact,and http-header has no chunked.
after readstring finished i get the first fragment of the gzip . i
sleep the app and then readstring again.but i get nothing. how to get
the next fragment of gzip page.

2. This is the first 10 byte of the gzip filebut the gzip file
'xxx.gz' format scratch my head over.

1f   8b   08   7f    39 f4 63 d8      b6     c4

byte 4 is the FLG ,
bit 0 FTEXT
bit 1 FHCRC
bit 2 FEXTRA
bit 3 FNAME
bit 4 FCOMMENT
bit 5-7 what are these FLGs

what is the mean of byte 9 (b6) and the byte 10 (c4)

thanks

victor zou

Replies:

www.cryer.info
Managed Newsgroup Archive