use CURL by default or file_get_contents if CURL disabled