Prefer curl, but fall back to file_get_contents