Internet Explorer Does Not Handle "Text/Plain" Content-Type as Expected (329661)



The information in this article applies to:

  • Microsoft Internet Explorer version 6 for Windows XP
  • Microsoft Internet Explorer version 6 for Windows 2000
  • Microsoft Internet Explorer version 6 for Windows NT 4.0
  • Microsoft Internet Explorer version 6 for Windows Millennium Edition

This article was previously published under Q329661

SYMPTOMS

When Internet Explorer receives an HTTP response and the Content-Type header is set to Text/Plain, the browser still performs data sampling to determine the content type.

For example, if you create the following file, and then put the file in a virtual directory (or in an Active Server Pages (ASP) page that sets the Content-Type header to Text/Plain), you see the raw XML content in the browser window when you load the file in Internet Explorer. Therefore, the XML parser is invoked because the Content-Type header changes to Text/XML.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

NOTE: Every XML document should start with the following tag:
<?xml version="1.0" encoding="iso-8859-1"?>
				
You may expect to resolve this issue when you set the IsTextPlainHonored registry key. For additional information about how to do this, click the article number below to view the article in the Microsoft Knowledge Base:

239750 "Text/Plain" Content-Type Header Field Is Ignored

However, if data sampling detects XML content, Internet Explorer ignores this revised registry value.

Modification Type:MinorLast Reviewed:1/16/2006
Keywords:kbprb KB329661