Well I have a small piece of JScript code that responsible to download data from a server (binary data as well):
var HttpObj = new ActiveXObject("Microsoft.XMLHTTP");
HttpObj.open("GET", serverUrl, false);
HttpObj.send();
var responseText = HttpObj.responseText;
This code work fine, However, initializing HttpObj
as:
var HttpObj = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
also works.
As I see it, there are quite a few ActiveXObject
object that provide HTTP requests API.
Question
Which ActiveXObject
to use? which one is the "best" / latest / most robust / fits most cases? How do I even begin evaluating that?