i want to write a script,which can test a webpage whether do or undo gzip?how to begin?who can give me some tips or some tutorials.thank you.