Sub Macro1()
url = "http://jjh.virtual.vps-host.net:8080/restdemo/services/customers/0"
Dim HttpReq As Object
Set HttpReq = New WinHttpRequest
HttpReq.Open "GET", url, False
'or use GET instead of POST
HttpReq.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
HttpReq.send
'HttpReq.send postmydata
'Note - if using GET set postmydata to ""
MsgBox (HttpReq.responseText)
End Sub
Now the next challange is to get the Microsoft XML parser working.
No comments:
Post a Comment