ranjithkumar10

POST request in VBA

Jan 2nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.38 KB | None | 0 0
  1. Public Sub httpclient()
  2. Dim xmlhttp As New MSXML2.XMLHTTP, myurl As String
  3. myurl = "http://localhost:1234/call.php?apicall=registration.data&apiDataType=xml"
  4. xmlhttp.Open "POST", myurl, False
  5. xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
  6. xmlhttp.Send "apikey=d8a40f77-69b5-4ef7-b554-d8f86382101c&cursor=MQ==&limit=1"
  7. MsgBox (xmlhttp.responseText)
  8. End Sub
Add Comment
Please, Sign In to add comment