CString DomainWinIntet::Login(const CString& userId,const CString& passWord)
{
CString text;
CString resource;
CInternetSession m_session(NULL,0);
CHttpFile* pHttpFile=(CHttpFile*)m_session.OpenURL("http://域名/login.jsp?method=post&username=ldm&password=123456");
while(pHttpFile- >ReadString(text))
{
resource=resource+"\r\n";
resource+=text;
}
pHttpFile- >Close();
m_session.Close();
return resource;
}
{
CString text;
CString resource;
CInternetSession m_session(NULL,0);
CHttpFile* pHttpFile=(CHttpFile*)m_session.OpenURL("http://域名/login.jsp?method=post&username=ldm&password=123456");
while(pHttpFile- >ReadString(text))
{
resource=resource+"\r\n";
resource+=text;
}
pHttpFile- >Close();
m_session.Close();
return resource;
}