@Tunaki Ah...I think because OP didn't say Which part doesn't he understand. For example I don't know does OP understand what's GET requests, HTTP head or not. Just a What does this do? is unclear for me.

@EdCottrell You've answered that question, what do you think about it?