HTTP GET in VBS

前端 未结 4 1747
北荒
北荒 2020-11-27 03:51

Is there a way to perform an HTTP GET request within a Visual Basic script? I need to get the contents of the response from a particular URL for processing.

4条回答
  •  遥遥无期
    2020-11-27 04:29

    Dim o
    Set o = CreateObject("MSXML2.XMLHTTP")
    o.open "GET", "http://www.example.com", False
    o.send
    ' o.responseText now holds the response as a string.
    

提交回复
热议问题