refactor DownloadUrlFileToLocalHaveTempFile