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; 
}

相关文章:

  • 2021-05-25
  • 2021-08-27
  • 2021-12-12
  • 2021-08-09
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2022-01-19
  • 2022-12-23
  • 2022-03-01
相关资源
相似解决方案