Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
ASP Script for XMLHTTPASP script showing how to use XMLHTTP. <%@ LANGUAGE="VBSCRIPT" %>
<%
response.ContentType = "text/xml"
' Create an ASP XML parser object
set xml0 = Server.CreateObject("Chilkat.Xml")
' Returns the XML page as a Variant
set xml = xml0.HttpGet("http://www.xml-parser.com/companies.xml")
' Send this XML to another ASP page for processing.
' In this case, it simply echos the XML back.
set xml2 = xml.HttpPost("http://127.0.0.1/Examples/xmlEcho.asp")
response.write xml2.GetXml()
%>
*************************************************************************************************
THIS IS THE CODE THAT RECEIVES THE HTTP POST USING MICROSOFT MSXML:
<%@ language=javascript %>
<%
Response.Expires = -1000;
var doc = Server.CreateObject("Msxml2.DOMDocument");
doc.load(Request);
Response.ContentType = "text/xml";
doc.save(Response);
%>
*************************************************************************************************
THIS IS THE CODE THAT RECEIVES THE HTTP POST USING CHILKAT ASP XML:
<%@ language=javascript %>
<%
Response.Expires = -1000;
var doc = Server.CreateObject("Chilkat.Xml");
doc.LoadRequest();
Response.ContentType = "text/xml";
Response.Write(doc.GetXml());
%>
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.