CURL class: getting the contents of a page