<div class="gmail_quote">On Tue, Jul 19, 2011 at 9:57 AM, Jesse Phillips <span dir="ltr"><<a href="mailto:jessekphillips%2BD@gmail.com">jessekphillips+D@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">Andrew Wiley Wrote:<br>
<br>
> I know, but if you look at the docs for the inflate functions, zlib is<br>
> supposed to be autodetecting the gzip header and uncompressing the payload<br>
> correctly, if I understand the documentation (which I probably don't at this<br>
> point).<br>
<br>
</div>Not sure what documentation you are talking of. But it doesn't sound like it does auto detection, an answer to one of the question:<br>
<br>
"You can request that deflate write the gzip format instead of the zlib format using deflateInit2(). You can also request that inflate decode the gzip format using inflateInit2(). Read zlib.h for more details."<br>


</blockquote></div><br><div>Ah, I stand corrected:</div><div>"inflate() can decompress and check either zlib-wrapped or gzip-wrapped</div><div>  deflate data.  The header type is detected automatically, if requested when</div>

<div>  initializing with inflateInit2()."</div>