CString strUrl = get_post_url(purl_get_version_url) + _T("/exportExcelFileWeb/api"); //url地址
CString strPrama;
strPrama.Format(_T("?programId=%d&orgCode=%s&fileName=%s"), m_id, org_code, name);
HRESULT hr = URLDownloadToFile(NULL, strUrl + strPrama, _T("F:\\test.xls"), 0, NULL);
URLDownloadToFile可以將服務器上的文件下載到本地
將http網頁數據流保存到本地
