Update http.js

This commit is contained in:
Namhyeon Go 2024-07-10 12:07:52 +09:00 committed by GitHub
parent 840e3bfb4c
commit 98b49b80a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,23 +80,27 @@ var HTTPObject = function(engine) {
this.create = function() { this.create = function() {
switch (this.engine) { switch (this.engine) {
case "MSXML": case "MSXML":
_interface = CreateObject([ if (typeof XMLHttpRequest !== "undefined") {
"Microsoft.XMLHTTP", _interface = new XMLHttpRequest();
"WinHttp.WinHttpRequest.5.1", } else {
"Msxml3.XMLHTTP", _interface = CreateObject([
"Msxml2.XMLHTTP", "Microsoft.XMLHTTP",
"Msxml2.XMLHTTP.7.0", "WinHttp.WinHttpRequest.5.1",
"Msxml2.XMLHTTP.6.0", "Msxml3.XMLHTTP",
"Msxml2.XMLHTTP.5.O", "Msxml2.XMLHTTP",
"Msxml2.XMLHTTP.4.O", "Msxml2.XMLHTTP.7.0",
"Msxml2.XMLHTTP.3.O", "Msxml2.XMLHTTP.6.0",
"Msxml2.XMLHTTP.2.6", "Msxml2.XMLHTTP.5.O",
"Msxml2.ServerXMLHTTP", "Msxml2.XMLHTTP.4.O",
"Msxml2.ServerXMLHTTP.6.0", "Msxml2.XMLHTTP.3.O",
"Msxml2.ServerXMLHTTP.5.0", "Msxml2.XMLHTTP.2.6",
"Msxml2.ServerXMLHTTP.4.0", "Msxml2.ServerXMLHTTP",
"Msxml2.ServerXMLHTTP.3.0" "Msxml2.ServerXMLHTTP.6.0",
]); "Msxml2.ServerXMLHTTP.5.0",
"Msxml2.ServerXMLHTTP.4.0",
"Msxml2.ServerXMLHTTP.3.0"
]);
}
break; break;
case "CURL": case "CURL":