Page 1 of 1

identify web pages with deflate encoded content

Posted: Tue Sep 22, 2009 10:18 pm
by runeveryday315
i want to make a tool,which can identify web pages whether with deflate encoded content .like GIDZipTest tool.but i don't know how to do it ,who can give me some tips?thank you.

Re: identify web pages with deflate encoded content

Posted: Wed Sep 23, 2009 12:22 am
by requinix
You can probably do a HEAD request (with fsockopen) and check the Content-Encoding response header for "deflate".

Example #1 is halfway there.