Xampp Xml http requests seems to fail all the time how do I
Posted: 02. August 2010 19:56
Hello, thanks for reading my question, I'm using Xampp for my development server locally. I'm doing some Ajax/Js using
xml.
This code works great on my live linux server but fails 100% of the time on Xampp, it fails at xmlhttp.status==200
So I added the alert box alert('header returned is ' +xmlhttp.getAllResponseHeaders())
so when it fails I get the following from "alert('header returned is"
header returned is Date: Mon, 02 Aug 2010 18:54:50 GMT
Server: Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6
Vary: accept-language,accept-charset
Accept-Ranges: bytes
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Content-Language: en
Does Xampp even do Xml? or is there something I need to turn on in the configuration of apache?
any help would be great.....Again this code works great on a live server
xml.
This code works great on my live linux server but fails 100% of the time on Xampp, it fails at xmlhttp.status==200
So I added the alert box alert('header returned is ' +xmlhttp.getAllResponseHeaders())
so when it fails I get the following from "alert('header returned is"
header returned is Date: Mon, 02 Aug 2010 18:54:50 GMT
Server: Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6
Vary: accept-language,accept-charset
Accept-Ranges: bytes
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Content-Language: en
- Code: Select all
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
{
if(xmlhttp.status==200)
{
document.getElementById("unitconversion_1_msg").innerHTML=successmsg;
strArray=xmlhttp.responseText.split(",");
document.getElementById("unitconversion_1_l2").innerHTML=strArray[0];
}
else
{ alert('header returned is ' +xmlhttp.getAllResponseHeaders())
document.getElementById("unitconversion_1_msg").innerHTML=errormsg;
}
}
};
Does Xampp even do Xml? or is there something I need to turn on in the configuration of apache?
any help would be great.....Again this code works great on a live server