Hi again
The javascript html is running on windows server 2000/windows 2000. I have
the main bit of the code but I have replaced the confidential information
with the word "confidenti al".
function hit() {
xmlhttp.open("P OST", "Confidenti al ",true);
xmlhttp.onready statechange=fun ction() {
if (xmlhttp.readyS tate==4) {
document.write( xmlhttp.respons eText)
}
}
xmlhttp.setRequ estHeader("Man" , "POST Confidential HTTP/1.1")
xmlhttp.setRequ estHeader("Mess ageType", "CALL")
xmlhttp.setRequ estHeader("Cont ent-Type", "text/xml")
xmlhttp.send("< request>confide ntial</request>")
}
Mark
"Martin Honnen" <ma*******@yaho o.de> wrote in message
news:41******** *************@n ewsread2.arcor-online.net...
Mark wrote:
I have to send a cgi request to a company using xmlhttp request. They
reply back with a line of info but when you view the internet explorer
source code you see the XML format.
I was just wonder if anyone could help me save the xml format to a xml
file.
If your page is loaded via HTTP in a browser then it usually can't save
file to the local file system, whether you want to use XML or something
else.
You can of course script the response send by the server as
httpRequest.res ponseXML with DOM methods and send it back to the server
where a CGI script (or PHP or ASP or JSP) can save the XML as needed.
Of course it is als possible to use Microsoft.XMLHT TP with JScript in a
Windows Script Host file or an ASP page and there you can certainly save
to a file using the save method of the DOM document object (e.g.
httpRequest.res ponseXML).
--
Martin Honnen
http://JavaScript.FAQTs.com/