Does the test space support the XMLHTTP component

  

The XMLHTTP component has a wide range of applications, such as getting the source code of the web page, etc., so if you need to use the XMLHTTP service, you must confirm whether the server supports the space before purchasing the space. The component.

Test Method

Save the code as an asp file, upload it to the space, and access it directly to detect it.

<% On Error Resume Next Response.Write "<h3>Service XmlHttp component support: </h3>" oxml=array("Msxml2.ServerXMLHTTP.6.0"," ;Msxml2.ServerXMLHTTP.5.0","Msxml2.ServerXMLHTTP.4.0","Msxml2.ServerXMLHTTP.3.0","Msxml2.ServerXMLHTTP","Msxml2.XMLHTTP.6.0","Msxml2. XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP") for i=0 to ubound(oxml) Set getxmlhttp = Server.CreateObject(oxml (i)) If Err Then Err.Clear Response.Write oxml(i)&"Does not support <br/>" else Response.Write oxml(i)&" Support<br/> " end if next %>

XMLHTTP Wikipedia

XMLHTTP is a set of API functions that can be called by JavaScript, JScript, VBScript, and other scripting languages ​​embedded in web browsers. Send and receive XML or other data between the browser and the web server over HTTP. The biggest benefit of XMLHTTP is that it can dynamically update web pages without having to re-read the entire web page from the server or install additional plugins. This technology is used by many websites to enable fast-response dynamic web applications. For example: Google's Gmail service, Google Suggest dynamic lookup interface, and Google Map geographic information service.

XMLHTTP is an important part of AJAX web development technology.

In addition to XML, XMLHTTP can also be used to retrieve data in other formats, such as JSON or even plain text.

Copyright © Windows knowledge All Rights Reserved