Microsoft KB Archive/264868

= Internet Explorer may not detect a content type change from text/html to text/xml or from text/html to application/pdf =

Article ID: 264868

Article Last Modified on 10/26/2007

-

APPLIES TO


 * Microsoft Internet Explorer (Programming) 6.0
 * Microsoft Internet Explorer 5.5
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01
 * Windows Internet Explorer 7 for Windows XP
 * Windows Internet Explorer 7 for Windows Server 2003
 * Windows Internet Explorer 7 in Windows Vista

-



This article was previously published under Q264868





SYMPTOMS
If the ContentType property of a URL changes but the URL stays the same, Internet Explorer displays the new contents of the page with the old content type. To see the information displayed correctly with the new content type, you must open a new instance of Internet Explorer.

This problem occurs if the ContentType property changes in one of the following ways:
 * From &quot;text/html&quot; to &quot;text/xml&quot;
 * From &quot;text/xml&quot; to &quot;text/html&quot;
 * From “text/html” to “application/pdf”

Note The default for Active Server Pages (ASP) is &quot;text/html.&quot;



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



Steps to reproduce the behavior
Note These steps assume that you are familiar with Internet Information Server (IIS) and Active Server Pages (ASP).   Create a new ASP page with the following code: <%@ Language=&quot;VBScript&quot; Codepage=&quot;65001&quot; %>

<%  Response.ContentType = &quot;text/xml&quot; %>

 This is some stuff   Save this ASP file as ContentType.asp to the default Web site of your IIS server. Start a new instance of Internet Explorer, and browse to the newly created ASP page (for example, http:///ContentType.asp). Notice that the content appears as XML.  Do not close the browser window, and open the ASP page. Comment out the ContentType line as follows: 'Response.ContentType = &quot;text/xml&quot;' and save the ASP page again. </li> Refresh the browser window. Notice that the content still appears as XML, even though the content type has changed.</li> Open a new instance of Internet Explorer, and browse to the ASP page. Notice that the content appears with the ASP default content type of &quot;text/html.&quot;</li></ol>

Additional query words: update pick up

Keywords: kbbug kbpending kbmsxmlnosweep KB264868

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.