http get in vb6 and receive xml data

我怕爱的太早我们不能终老 提交于 2020-01-30 01:15:00

问题


I don't know much thing in vb6. I have a problem
I need to make a http get request to a server, and the response will be some xml data. i also have to send some data to server via query string. I'm new to vb6 and don't have any idea about how to do that. need your help.


回答1:


Your best bet is using the DOMDocument class, which should be on all versions of Windows from 2000 to 7. Add a reference to a version of "Microsoft Xml".

Dim oDocument As MSXML2.DOMDocument

Set oDocument = New MSXML2.DOMDocument
oDocument.Load "http://xmlserver.domainname?myQueryString"

Do Until oDocument.readyState = 4
    DoEvents
Loop

Parse(oDocument.DocumentElement)
DisplayXml(oDocument.Xml)


来源:https://stackoverflow.com/questions/11606843/http-get-in-vb6-and-receive-xml-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!