"Connection: Close" Headers Stripped from HttpAddRequestHeaders or HttpSendRequest (259984)
The information in this article applies to:
- Microsoft Internet Explorer 5.01 for Windows NT 4.0
- Microsoft Internet Explorer 5.01 for Windows 98
- the operating system: Microsoft Windows 2000
- 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 "Connection: Close" header to force a non-persistent HTTP connection, the "Connection: Close" 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 "Connection: Close" header:
sHeader = "Connection: close"
iRetVal = HttpSendRequest(hHttpOpenRequest, sHeader, Len(sHeader), 0, 0)
CAUSE
This behavior occurs if the request is sent as an HTTP/1.1 request.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbprb KB259984 |
---|
|