victorzou
2008-07-17 02:28:59 UTC
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
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