http://www.lornajane.net/posts/2012/building-a-restful-php-server-understanding-the-request