Hi. I having a problem with a web site sending data gzip compressed even when told not to (Transfer-encoding: idenity). So I looked up how gzip is compressed (RFC 1951 & 1952) and wrote am inflate function. It compiles and runs, and the first 1000-2000 bytes seem to decompress fine, then errors start to occur. It's taken 3 weeks to bash this into my head and turn it into c code. I'm hoping some one with some experience can see a logic error I may have made.
gzip.h
gzip.cpp
Sorry this is in the networking forum it's in a rss downloading program.