mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 21:26:04 +00:00
Update http.js
This commit is contained in:
parent
840e3bfb4c
commit
98b49b80a1
|
@ -80,6 +80,9 @@ var HTTPObject = function(engine) {
|
||||||
this.create = function() {
|
this.create = function() {
|
||||||
switch (this.engine) {
|
switch (this.engine) {
|
||||||
case "MSXML":
|
case "MSXML":
|
||||||
|
if (typeof XMLHttpRequest !== "undefined") {
|
||||||
|
_interface = new XMLHttpRequest();
|
||||||
|
} else {
|
||||||
_interface = CreateObject([
|
_interface = CreateObject([
|
||||||
"Microsoft.XMLHTTP",
|
"Microsoft.XMLHTTP",
|
||||||
"WinHttp.WinHttpRequest.5.1",
|
"WinHttp.WinHttpRequest.5.1",
|
||||||
|
@ -97,6 +100,7 @@ var HTTPObject = function(engine) {
|
||||||
"Msxml2.ServerXMLHTTP.4.0",
|
"Msxml2.ServerXMLHTTP.4.0",
|
||||||
"Msxml2.ServerXMLHTTP.3.0"
|
"Msxml2.ServerXMLHTTP.3.0"
|
||||||
]);
|
]);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "CURL":
|
case "CURL":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user