Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Posting data to another server using objXmlHttp 2

Status
Not open for further replies.

andyUK

Programmer
Dec 19, 2000
39
GB
I need to post an xml file to a server and then grab the information back from it. The problem I am having is that I have done the coding from many examples. None of them show you how to attach a xml file to the posted url. I am wanting to use objXmlHttp but would settle using ASPtear.

Any suggestions.

Andy

 
Andy,
I have not understood what do you mean by "settle using ASPtear"....I have an example that reads back xml file from server (code or result whatever). See if this is of any help.

<% Dim objXMLHTTP, xml

' Create an xmlhttp object:
Set xml = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;)
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject(&quot;MSXML2.ServerXMLHTTP&quot;)

' Opens the connection to the remote server.
xml.Open &quot;GET&quot;, &quot; False

' Actually Sends the request and returns the data:
xml.Send

'Display the HTML both as HTML and as text
Response.Write &quot;<h1>The HTML text</h1><xmp>&quot;
Response.Write xml.responseText
Response.Write &quot;</xmp><p><hr><p><h1>The HTML Output</h1>&quot;

Response.Write xml.responseText
Set xml = Nothing
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top