HTTP GET in VBS

前端 未结 4 1749
北荒
北荒 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:19

    If you are using the GET request to actually SEND data...

    check: http://techhelplist.com/index.php/tech-tutorials/37-windows-troubles/60-vbscript-sending-get-request

    The problem with MSXML2.XMLHTTP is that there are several versions of it, with different names depending on the windows os version and patches.

    this explains it: http://support.microsoft.com/kb/269238

    i have had more luck using vbscript to call

    set ID = CreateObject("InternetExplorer.Application")
    IE.visible = 0
    IE.navigate "http://example.com/parser.php?key=" & value & "key2=" & value2 
    do while IE.Busy.... 
    

    ....and more stuff but just to let the request go thru.

提交回复
热议问题