Revised file_get_contents to curl