>The gzip header has some very simple things in the header >including a "magic" number (a sort of quick file format > identifier). If the first 2 bytes aren't (decimal) 31 > and 139, then the file is DEFINITELY NOT gzip encoded. > And the next byte is the identifier for the Compression > Method. The only one used is 8 for DEFLATE. (I believe. > It's been a long time...) > >So even without any further fancy understanding of the >file format, you can VERY QUICKLY rule out the >majority of files/responses that are not gzip >encoded, if their first 3 bytes don't match >these values.
Ok - I'm not even doing gzip work now at ALL... but I found this post to be one worthy of archiving and keeping because you so simply outlined some very important tidbits here: THANK YOU! --Jason P Sage ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public