mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +00:00
Update http.js
This commit is contained in:
parent
840e3bfb4c
commit
98b49b80a1
38
lib/http.js
38
lib/http.js
|
@ -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":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user