我现在想用vc++6 的webbrowser控件实现自动登陆网页,建立一个dialog工程,在form上添加了一个webbrowser和一个按钮,按钮的事件如下
CString headers = "Content-Type: application/x-www-form-urlencoded\r\n";
VARIANT header=COleVariant(headers, VT_BSTR);
CString strPostData = "[email protected]&passwd=victory_";
VARIANT vPostData = COleVariant(strPostData, VT_BSTR);
m_ctrlweb.Navigate("http://mail.sohu.com/login.jsp",NULL,NULL,&vPostData,&header);
能打开网页,可就是无法实现自动登陆,哪位高手能帮着看看问题出在哪啊,用vb就可以,这是为什么啊?急,急急急
CString headers = "Content-Type: application/x-www-form-urlencoded\r\n";
VARIANT header=COleVariant(headers, VT_BSTR);
CString strPostData = "[email protected]&passwd=victory_";
VARIANT vPostData = COleVariant(strPostData, VT_BSTR);
m_ctrlweb.Navigate("http://mail.sohu.com/login.jsp",NULL,NULL,&vPostData,&header);
能打开网页,可就是无法实现自动登陆,哪位高手能帮着看看问题出在哪啊,用vb就可以,这是为什么啊?急,急急急
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货