系统采用HTTP POST方式调用其他系统的网页,将信息提供给该系统。我如何用IE打开收到的结果信息?
函数举例:
CString PostPage(CString m_svr, CString m_page, CString m_formdat)
{
    CString m_cont,m_err,    s1;    
    
    CInternetSession lc_isession;
    lc_isession.SetOption(INTERNET_OPTION_CONNECT_TIMEOUT,32000);
    lc_isession.SetOption(INTERNET_OPTION_CONNECT_RETRIES,10);
    lc_isession.SetOption(INTERNET_OPTION_CONNECT_BACKOFF,1000);
    
    CHttpConnection *pcon = lc_isession.GetHttpConnection(m_svr,80,"admin","password");
    CString FormDataType = _T("Content-Type: application/x-www-form-urlencoded");    try
    {
        CHttpFile *http=pcon->OpenRequest("POST",m_page);
        http->AddRequestHeaders("Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, */*");
        http->AddRequestHeaders("Accept-Language: zh-cn");
        http->AddRequestHeaders("Content-Type: application/x-www-form-urlencoded");
        http->AddRequestHeaders("Accept-Encoding: gzip, deflate");
        http->AddRequestHeaders("User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)");
        http->AddRequestHeaders("Connection: Keep-Alive");
        http->AddRequestHeaders("Cache-Control: no-cache");
        //http->AddRequestHeaders("Cookie: FirstLogon=D195593569A134;");
        http->SendRequest(FormDataType,(LPVOID)(LPCTSTR)m_formdat,m_formdat.GetLength());
        CString mstr;
        m_cont.Empty();
        while(http->ReadString(mstr))
        {
            m_cont+=mstr+"\n";
        }
        m_cont.Replace("<br>","\r\n");
        http->Close();
        pcon->Close();
        return m_cont; 
    }
    catch (CInternetException* pEx)
    {
        char mcharerr[100];
        pEx->GetErrorMessage(mcharerr,100);
        m_err=mcharerr;
        return m_cont;
    }
}