identify web pages with deflate encoded content

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
runeveryday315
Forum Newbie
Posts: 3
Joined: Tue Sep 08, 2009 8:08 am

identify web pages with deflate encoded content

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: identify web pages with deflate encoded content

Post 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.
Post Reply