MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
VBScript as your scripting language: function fcnGetXML(RepURL) DataToSend = "companyid=111&apikey=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&type=reps&sitename=" & RepURL servername = cstr(request.ServerVariables("Server_Name")) postUrl = "http://subdomain.mywebsite.com/EDI.asp" 'Set url to send request to including web service name. postUrl = postUrl Set xmlhttp = server.Createobject("MSXML2.XMLHTTP") 'Prepare request header. xmlhttp.Open "POST",postUrl,false xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 'Send request: xmlhttp.send DataToSend If cstr(xmlhttp.Status) = "200" then 'Success, parse result fcnGetXML = xmlhttp.responseText Else 'failure handle failure fcnGetXML = "0" End if end function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.