Microsoft KB Archive/320055

= BUG: Internet Explorer HTTP GET Request User Agent Incorrect for Java Applets =

Article ID: 320055

Article Last Modified on 8/28/2002

-

APPLIES TO


 * Microsoft virtual machine 38xx Series

-



This article was previously published under Q320055



SYMPTOMS
When you download Java applets with Microsoft J++, Internet Explorer sends an incorrect value for the HTTP_USER_AGENT request variable.

This occurs for Microsoft Windows 2000 Professional, Service Pack 2, that runs Internet Explorer 5.5, Service Pack 2: Mozilla/4.0 (compatible; MSIE 5.5, Windows NT 5.0; T312461).

When the browser tries to download a Java applet that is indicated in an

Mozilla/4.0. (compatible; MSIE.5.0; Win32)



CAUSE
This problem occurs with the Internet Explorer HTTP GET Request because the User Agent is incorrect for Java applets. This occurs because the string that is associated with the HTTP.agent is taken from the hkcu\software\microsoft\windows\currentversion\internet settings\User Agent.



RESOLUTION
To work around this problem, you can modify the registry key that the Java applet is using to the USER_AGENT of the respective browser. Note that this is a client-side fix. Therefore, the following change must be made for all client users:

hkcu\software\microsoft\windows\currentversion\internet settings\user agent

Example:

For Internet Explorer 6.0 on Microsoft Windows XP with the .NET Framework installed, change to: Mozilla/4.0 (compatible; Microsoft Internet Explorer 6.0; Windows NT 5.1; .NET CLR 1.0.3705)



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



MORE INFORMATION
NOTE: This is a bug in the Microsoft virtual machine (MS JVM 4.1). This bug will not be fixed.

Steps to Reproduce the Behavior

 * 1) Before running the code, start Network Monitor. Then, after running the code, view the trace file.
 * 2) Use the following code sample to reproduce the error:

     



<P>Test of APPLET tag</P>

</BODY> </HTML>

Additional query words: java ie applet

Keywords: kbbug kbnofix KB320055

-

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

© Microsoft Corporation. All rights reserved.