Microsoft KB Archive/259984

= &quot;Connection: Close&quot; Headers Stripped from HttpAddRequestHeaders or HttpSendRequest =

Article ID: 259984

Article Last Modified on 2/28/2007

-

APPLIES TO


 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer 5.01
 * Microsoft Windows 2000 Standard Edition
 * Microsoft Windows Internet Services (WinInet)

-



This article was previously published under Q259984



SYMPTOMS
When you use the WinInet Application Programming Interface (API) HttpAddRequestHeader or HttpSendRequest call to add a &quot;Connection: Close&quot; header to force a non-persistent HTTP connection, the &quot;Connection: Close&quot; header may be stripped from the request before it is sent to the remote server.

For example, the following sample code may send the request without the &quot;Connection: Close&quot; header: sHeader = &quot;Connection: close&quot; iRetVal = HttpSendRequest(hHttpOpenRequest, sHeader, Len(sHeader), 0, 0)



CAUSE
This behavior occurs if the request is sent as an HTTP/1.1 request.



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



MORE INFORMATION
For more information about HTTP persistent connections, see the &quot;Hypertext Transfer Protocol -- HTTP/1.1&quot; RFC at the following Web site:

http://www.rfc-editor.org/rfc/rfc2616.txt

Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

Keywords: kbprb KB259984

-

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

© Microsoft Corporation. All rights reserved.