VB 6中如何发送HTTP请求,并获取返回的字符
展开全部
可以用Inet控件或者XMLHTTP组件
Dim HTTP
Set HTTP=CreateObject("MSXML2.XMLHTTP")
With HTTP
.open "POST",LoginPageURL,False
.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
.send "POST信息:aaa=bbb&ccc=ddd"
Msgbox .getresponsetext
End With
Dim HTTP
Set HTTP=CreateObject("MSXML2.XMLHTTP")
With HTTP
.open "POST",LoginPageURL,False
.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
.send "POST信息:aaa=bbb&ccc=ddd"
Msgbox .getresponsetext
End With
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询