http get in vb6 and receive xml data

前端 未结 1 433
一生所求
一生所求 2021-01-16 09:19

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 t

相关标签:
1条回答
  • 2021-01-16 10:14

    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)
    
    0 讨论(0)
提交回复
热议问题