Deb_2007 0 Newbie Poster

I am trying to inflate using zlib. The data is from a network packet contaning only unsigned charecters in QP encoded form eg,
1F=8B=08=00=00=00=00=00=02=FF=A5X=FBw=DA8=16=FE=BD=7F=85=AAlyL=00C=DE=03=98=9C=B6i=13f=BBm=A6=ED=9Cvg=1F=1C=D9=16=B6&=B2=E4=C82=84M=F9=DF=F7J=B2=81=90G=BB=B3=C9=01=AC=C7=95=AE=EE=FD=EE=A7{=3DLt=CAG=C3=84=92h4L=A9&(=D1:k=D3=EB=82=CD|=1CJ=A1=A9=D0m=BD=C8(Fe=CB=C7=9A=DEh=CF=08=0EP=98=10=95S=ED=FF=F6=F9m=FB=04=8F=86=9AiNG=E7R=C6=9C=0E=3D=D7=1A=E6za~=9E=B7=DB=CF=02=19-Z:j=91V=D6=EA$=B7SX=B2=3D%)=E3=8B>Q=8C=F0VND=DE=CE=A9b=D3=E5=B3jB=CE=FEC=FB{=DD=EC=C6v=85=92K=D5=DF=D9
...............etc.
After reading the file I have stored the data in an array of unsigned charecters.
eg,
usgned charecter arr[....];
then my array contains arr[0]=31,arr[1]=139,arr[3]=0 and so on in my program.
I have read the entire data in a single array and contains 1725 charecters.

The code that I am using is wriiten at the zlib home site which i have modified to run in the windows 2000 os (snippets of code that read time sys lib have been left out).

Using InflateBackInit and inflate back set of functions after reading the header my program is returning with the error invalid code length.

I have compiled my program in Microsoft visula c++ 6.0.
i have attached the coden an attachment and the packet below.
START_PACKET
TIME=2007:09:11:00:04:26
SOURCE_IP=72.14.235.104
DEST_IP=219.64.188.35
FILTER_ID=URL_GOOGLE
DATA_QP==06=00=06=00=00=000J=20=00=07=00=08=00E=00=05x=BA=99=00=005=06=FB=0BH=0E=EBh=DB@=BC#=00P=09=CCP9%=A7(=D7h=D4P=10=19=20I4=00=00HTTP/1.1=20200=20OK=0D=0ACache-Control:=20private=0D=0AContent-Type:=20text/html;=20charset=3DUTF-8=0D=0AContent-Encoding:=20gzip=0D=0AServer:=20GWS/2.1=0D=0AContent-Length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14=11=CB=17=00=84=1C=CC=12&=18=09=92R=7FZ=D1=EF=8E=B1=D0m=C4r8=E5=A2/=80"=96=15=F5=95=CC=87":5=A65=F4=B7=A2=AB=EB=BCA=B9%=9E=92=9C>=D2=F8=CDMV=AB=95=CD=FB=BC=E3=18=09|Ly=C7`=A3uM=1F`=A7=C6=1D=0A=04=A4=16=D4=86]A=01=06=11=BD=F90m=E0k=1F7=9F=FB=ED^=F3=B6\=CA=87=D1=8APL8:]=CC=C4=7F=FC=BB=F6=97=7F=FD=84=9B-#=B4{=0Dk-)=CF=E9=86=20=10=8E=1B=1A,+r=E9=01=E5z=DE=1Df=19j=12p=8A=DC=85=E1wQH9=CF3=12B=10=96=AD2$=FD=03=98=0B=C6=D2Q=E9s=E3=05=01=90=03=17=83=CA=E0=97=D1=17=1A=0C=BD`T=13A=9E=0D=EE=7FC=E8=84=9C=E4=B9=7F=BD=11B=10=13=0E=91[=91=9A=C6Iv=CA=A8=BBgk=B2z=B0=D1R=03=9D=FD9
END_PACKET

pl. help.
~regds
deb.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.