i want to use a cgi on the apache server!
i have this exe file taken from a thread i have posted on :
http://www.vbcity.com/forums/topic.asp?tid=95532&#RID298119
i compiled to file to an exe and putted it in a test folder!
the file is used as a cgi, and when i try to access it like this :
<SCRIPT>
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
xmlhttp.open "GET", "http://localhost/test/cgi4vb.exe",true);
xmlhttp.send("x=asdfsadf");
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
alert(xmlhttp.responseText)
}
}
</SCRIPT>
i recive a message with the letters "MZ" which i dont know why
is the place i putted the cgi is ok?should i put it on another place?
thnaks in adance
peleg