BigEric
04-20-2007, 01:34 AM
I apologize in advance for probably asking a very newbie type question. I would imagine my query is simple, yet with all my years of developing, I have done very little work with XML - simply a factor of the projects I work on.
So here goes....
I was given a URL of an external xml file. Let's call it www.anyurl.com/file.xml
I want to simply GET the file and copy the entire file onto our server.
I have code that includes this:
set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objHTTP.open "GET", "http://www.anyurl.com/file.xml", false
objHTTP.send
I can get the contents of the file and read the response text. However, this is not what I want to do. I want to read this external file (just as if it was a flat file) and make an exact duplicate of the file for saving on my server.
Any simple ways to do this? Whatever help anyone can offer would be tremendously appreciated.
Thank you in advance.
Eric :confused:
So here goes....
I was given a URL of an external xml file. Let's call it www.anyurl.com/file.xml
I want to simply GET the file and copy the entire file onto our server.
I have code that includes this:
set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objHTTP.open "GET", "http://www.anyurl.com/file.xml", false
objHTTP.send
I can get the contents of the file and read the response text. However, this is not what I want to do. I want to read this external file (just as if it was a flat file) and make an exact duplicate of the file for saving on my server.
Any simple ways to do this? Whatever help anyone can offer would be tremendously appreciated.
Thank you in advance.
Eric :confused: