标题:用xmlhttp登录7k7k并用动态WebBrowser验证登录结果
取消只看楼主
sharemycode
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2015-9-11
 问题点数:0 回复次数:0 
用xmlhttp登录7k7k并用动态WebBrowser验证登录结果
用xmlhttp登录7k7k,并用动态WebBrowser验证登录结果,直接上代码:
Dim web1 As Object
Private Sub Form_Load()
Set web1 = Me.Controls.Add("SHELL.EXPLORER.2", "web1", Me)
web1.Visible = True
web1.Move 0, 0, 1020, 744
web1.object.Silent = True
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
xmlhttp.open "POST", "http://zc., False
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.setRequestHeader "Connection", "Keep-Alive"
xmlhttp.send ("username=tst7k01&password=tst7k01")
web1.object.Navigate "http://www., 0
Set xmlhttp = Nothing
End Sub
源码文件:
xmlhttp_login_7k7k.rar (1.43 KB)
搜索更多相关主题的帖子: WebBrowser 7k7k 动态 
2015-09-11 11:23



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-457223-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.812788 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved