I have used a simple script to get a response from a PHP page, but the response header is empty in firefox and chrome but not in IE. The snippet of my script is:
var request = makeHttpObject();
request.open("GET", url, true);
request.withCredentials = "true";
request.send();
if (request.status == 200 && request.readyState == 4)
{
alert(request.getAllResponseHeader());
}
When I check the response header in the HTTP object under the 'Net' tab in debugging, I can see everything.
Can anyone tell what's missing in my script?