curl used instead of file_get_contents