My backend program generates some XML data and sends them to the client. The backend response is like this:
print $cgi->header("Content-type: text/xml;charset=utf-8");
print "<?xml version='1.0' encoding = 'utf-8'?>";
< correct XML data goes here >
When I try to visualize the sent XML in Firefox, It gets the whole thing and everything is fine. But under Chrome and IE the XML header isn't received and XML data isn't displayed as it should (only like a plain text)!
What's wrong with this?