做个客户端登录软件,做过的人进。
lzol 2005-09-14 04:07:42 登录Chinaren为例,语句是这么写的
CInternetSession mySession(NULL,0);
CHttpFile* myHttpFile=NULL;
CString myData;
CString myUrl;
CString m_SiteInfo;
myUrl = "http://passport.sohu.com/login.jsp?uid=" + m_strName + "&passwd=" + m_strPwd;
myHttpFile=(CHttpFile*)mySession.OpenURL(myUrl);
while(myHttpFile->ReadString(myData))
{
m_SiteInfo = myData;
}
返回:您无法直接访问此网页
是Chinaren封了这种访问方式还是我调用的不对,请高手指教!