Content-Encoding and gzip (zlib.h)
I får den lige på engelsk ;)I currently finnished coding a gzip option to my proxy server, and it seems to look fine. After I compress it (with compress2 level 9, from zlib), I uncompress a (uncompress) copy, to see if the data is corrupt... it's not. I add a content-encoding header and resize the length header. But when i send the modified response to the client, nothing happens. I've tried, using get command in terminal, to see what the client is recieving, and it looks allright. I'm running out of ideas, to what the problem could be. Isn't the way zlib compresses (with gzip standard), not compatible with the way IE, mozille ect. decompresses the body? Are there any other headerfields that needs to be added/removed? Haven't really found that to be the case in RFC2606
Any help is Greatly appriciated.
Regards
jnusa
[URL=http://www.hootmail.dk/jnusa/pcs]Binary version of PCS - Still very buggy. Syntax: pcs [port][/URL]
Recieved by client when requesting [url]www.hootmail.dk[/url]
NB! The status code field is allright... just GET command that doesn't show it all.
[CODE]
200 OK
Connection: close
Date: Wed, 19 Jan 2005 06:48:52 GMT
Accept-Ranges: bytes
ETag: "516d6cc-bb1-41b376da"
Server: Apache
Content-Encoding: gzip
Content-Length: 804
Content-Type: text/html
Last-Modified: Sun, 05 Dec 2004 21:00:10 GMT
Client-Date: Wed, 19 Jan 2005 12:48:59 GMT
Client-Peer: 10.1.192.64:3536
Client-Response-Num: 1
xÚµVëoÚ0ÿÄÿpdÒ´IMRJi
>¬Tkµ¾$ªiÚ8ÇfòßÏyV(´ÁùÁùî~÷ðÙ«t.û¿¯ )Çßno.Á²]÷©véºÝ~®ûw·pêW¡/Ë$!êºW÷V§\òô¹|Ä(P#b`ÀÄL¶-¥«Z0ȰlßôìzîZê@,åÐÆGdܶf§l9bËHDRܹæ\¦P°¡7J,ñ¤Ú@âç▒6e;3Äóy0UfP.ÚÖÉ)ÅZÚiü/ÇG ¿_[à£A >b]ø¿^=ýSZ¢%mëSC}Î+.c2dþ&×▒àH®ÏkgØJNÄ0P@±hAAáÉñéTë5EÎÎ
4÷_@t\îT\nâ¹ùîvºqëêrg¾ xÃd©JÅ ·ìÄrQ.$A@▒Ä8,ÿ▒ß`fÙ;0¯¡0xÕFÃGÒH¥¬ªÀoR
210S©ð±°P▒ȸ 'Æð¹¥¼bb_;9WKk©<4G63oß,WÒköïûQ¹¤Bf
Qô¶»bniÑwzïpÕdt¬8jk<ÄmKßM×`__qUÇ·9Ã+[WV.Ýò3ÏE»¤èuc³ä~þÙMßì9ºDÉAtt°:?Ì
t&jyXeÈíÝ+!Ý|³
WyðÞ}f~6l½bç³ßQ¢À.æsÇqÈ](¼!áß▒×5i®rõAò¤X3»Ð=<ðè¿,i[w)eêÏ
]EÕ&õ¦\RÅP1eþB½nCþ!Aÿ¨ "âð@Õ®{hþðS]ô ÑÏÚèDÏóö¹Ö<ëÅÞÙ¨Ö¹GÎÎël1êW¬yÖwö?ª4ÏÊ
[/CODE]