|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
- Sub main()
- Dim winHttp As Object, myPage&, username$, password$, Host$, strText$
- username = "cqgytyy"
- password = "123456"
- Host = "http://fdm.yyjzt.com/"
- Set winHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
- winHttp.Open "POST", Host & "user/topLogin.json", False
- winHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
- winHttp.send "jzt_username=" & username & "+&jzt_password=" & password
- For myPage = 1 To 1 '设置页码
- winHttp.Open "GET", Host & "search/merchandise.htm?page=" & myPage, False
- winHttp.send
- strText = winHttp.responseText
- Debug.Print strText
- Stop
- Next
- End Sub
复制代码
|
评分
-
2
查看全部评分
-
|