You are currently offline, waiting for your internet to reconnect

Data Is Not Posted Correctly by Using XMLHTTP to Send Multiple Asynchronous POSTs

This article was previously published under Q311730
This article has been archived. It is offered "as is" and will no longer be updated.
If you use XMLHTTP to send multiple POSTs asynchronously to a Web server that is configured to use basic authentication, some data may not be posted correctly. The following code sample (JavaScript) demonstrates the problem:
xmlhttp1=new ActiveXObject("MSXML2.XMLHttp.3.0");"POST","http://server/testpost.asp",true); xmlhttp2=new ActiveXObject("MSXML2.XMLHttp.3.0");"POST","http://server/testpost.asp",true);xmlhttp1.send(dataToSend1.XMLDocument);xmlhttp2.send(dataToSend2.XMLDocument);				
With this sample code:
  • For both POSTs, a new HTTP connection is opened and an anonymous POST is sent.
  • The server replies with 401.2 for both POSTs (the server is configured with basic authentication).
  • The credentials dialog box opens (only once for both POSTs).
  • The first POST request is sent with the supplied credential and correct data.
  • The second POST request is sent with the supplied credentials, but data is missing.
To resolve this problem, obtain the latest service pack for Internet Explorer 6. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
328548 How to Obtain the Latest Internet Explorer 6 Service Pack
The English version of this fix should have the following file attributes or later:
   Date          Time    Version         Size      File name   ----------------------------------------------------------   11-Dec-2001   11:14   6.0.2711.1200   479,232   Urlmon.dll				

To work around this problem, you can first connect by using a synchronous connection before the two asynchronous connections. This causes authentication to be carried out properly before the data is posted.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Internet Explorer 6 Service Pack 1.

Article ID: 311730 - Last Review: 02/27/2014 21:10:38 - Revision: 3.8

Microsoft Internet Explorer 6.0

  • kbnosurvey kbarchive kbbug kbfix kbie600presp1fix kbie600sp1fix KB311730