strURL = _T("http://128.83.205.193/filelist_main.html?folder=01/");
htmlFile = (CHttpFile*) httpSession.OpenURL(strURL);
if(htmlFile != NULL)
{
CString str;
//while(htmlFile->ReadString((LPTSTR)sRecived,1024) != NULL)
while(htmlFile->ReadString(str))
{
//strLine = sRecived;
//strHtml += strLine;
}
}
依然是没有找到发生错误的原因,但是选用WinHttp类解决了需求。