Microsoft Knowledge Base Email Alertz

When you send a POST request by using

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 305053 - Last Review: November 15, 2007 - Revision: 1.6

ServerXMLHTTP Stops Responding When You Send a POST Request

Hotfix download is availableHotfix Download Available
View and request hotfix downloads
This article was previously published under Q305053

SYMPTOMS

When you send a POST request by using ServerXMLHTTP, and the response from an HTTP/1.1 server does not contain a Connection header, and the HTTP/1.1 server keeps the connection alive after it delivers a response to an HTTP request, ServerXMLHTTP may stop responding (hang) until the timeout expires, and you may receive the following error message:
msxml3.dll error '80004005'

Unspecified error

CAUSE

WinHTTP attempts to read more data than will actually be delivered in the socket connection.

RESOLUTION

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language. The English version of this fix should have the following file attributes or later:
   Date           Time  Version    Size       File name     
   -------------------------------------------------------
   27-Jun-20001  12:38  8.10.8627  1,106,944  msxml3.dll
   27-Jun-20001  12:36  8.10.8627     24,576  msxml3a.dll
   27-Jun-20001  12:36  8.10.8627     44,032  msxml3r.dll
   27-Jun-20001  12:36  6.0.2462.0    28,672  xmlinst.exe
				

STATUS

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

MORE INFORMATION

The HTTP stack that MSXML3 ServerXMLHTTP uses, WinHTTP, is an HTTP/1.0-compliant stack with support for persistent connections. ServerXMLHTTP uses a COM Automation component called WinHttpRequest that is based on the core WinHTTP Win32 application programming interface (API).

Section 19.6.2 ("Compatibility with HTTP/1.0 Persistent Connections") of the HTTP/1.1 specification (RFC 2616) contains the following text:
Persistent connections in HTTP/1.0 are explicitly negotiated as they are not the default behavior.
When an HTTP/1.1 server interoperates with a 1.0 client, the server response to a request should specify whether the connection is closed or persisted after the response is delivered.

WinHTTP supports persistent connections, but assumes that the server will close the connection if the server response does not include a Connection header. This is the opposite behavior of an HTTP/1.1 client, which assumes that the connection is persisted unless explicitly informed otherwise with a Connection: Close response header.

Furthermore, the WinHttpRequest component ignores any Content-Length header in the response. It does this because occasionally the value that is given in the Content-Length header is incorrect, so WinHttpRequest continues to read response data from the TCP socket connection until it encounters the end of the response stream. However, if the connection is persisted, the Content-Length value must be honored so that no attempt is made to read past the end of the response data. Because the connection is persisted, ServerXMLHTTP stops responding if WinHTTP attempts to read more data than will actually be delivered in the socket connection.

APPLIES TO
  • Microsoft XML Parser 3.0
Keywords: 
kbautohotfix kbhotfixserver kbqfe kbfix kbprb kbqfe KB305053
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate