I'm trying to use VB.NET to submit XML via HTTP Post. I have example code written in ASP, but the following lines are not compatible:
Dim xml
Dim strXML
'omitting lines where strXML formed
set xml = CreateObject("Microsoft.XMLHTTP")
xml.setRequestHeader "Content-type", "text/html; charset=UTF-8"
xml.Open "POST", "https://site.info.com/from_somevendor", False
xml.Send strXML
Response.Write(xml.responseText)
set xml = Nothing
Can anyone correct this or provide example VB.NET code to accomplish this? Thank you.