PDA

View Full Version : how to force IE to send accept-language header when retriving xml doc



gerard
Aug 21st, 2006, 03:59 AM
Firefox works fine. It sends accept-language header all the time.
With IE. when using javascript to retrive xml or xsl doc, it does not send the accept-language header. The piece of code embeded in the html is similar as below:

XSLDoc = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
XSLDoc.async = false;
XSLDoc.load(XSLPath);

Anyone has any idea? Thanks.

A1ien51
Aug 21st, 2006, 03:32 PM
you try using setHeader("name","value");

Eric