For others purposes, I've added what I ended up with.
1) I'm using the ActiveXObject rather than the Sys("OleObject) as Nick suggested.
Does anybody have a comment on when to use ActiveX... versus Ole.... ?
2) I modified the GET code to support PUT or POST with form data, since some of the webservices use that.
3) The curl specific parameters are NOT needed when constructing the XmlHttpRequest. I imagine this is a "No DUH !" for everybody with any familiarity at all with this stuff, but came as an epiphany to me.
=====================================================
function http_request (URL, method, formData) {
var XmlHttpRequest = new ActiveXObject("MSXML2.XMLHTTP.3.0");
if ( ( method == undefined) || (method == "") ) {
method = "GET";
}
// XmlHttpRequest.open( Method, URL, Asynchronous, UserName, Password)
// method e.g. GET, POST, HEAD, PUT, DELETE, OPTIONS...
// Asynchronous = true, do not wait on a server response, false, pause current execution utnil the request is complete
XmlHttpRequest.open(method, URL, false);
// Name, Value
XmlHttpRequest.setRequestHeader("Content-Type", "application/json");
XmlHttpRequest.setRequestHeader("access_token", access_token_variable_or_constant);
XmlHttpRequest.send(formData);
try {
return XmlHttpRequest.responseText;
}
catch (e) {
return "Error" + e ;
}
}
=================
Thanks Again Nick! Regards, Curt Hicks