Article ID: 177190 - Last Review: August 28, 1999 - Revision: 1.0

BUG: Error 12019 When Calling InternetWriteFile

This article was previously published under Q177190
Expand all | Collapse all

SYMPTOMS

When HttpSendRequestEx is used, error 12019
ERROR_INTERNET_INCORRECT_HANDLE_STATE
may be returned by InternetWriteFile.

RESOLUTION

This can be avoided by specifying INTERNET_FLAG_NO_CACHE_WRITE in the call to HttpOpenRequest. Here's an example:
    HINTERNET hRequest = HttpOpenRequest(hConnect, "POST", "servername",
      NULL, NULL, NULL, INTERNET_FLAG_NO_CACHE_WRITE, 0);
				

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For sample demonstrating the use of HttpSendRequestEx and InternetWriteFile, please see the following article in the Microsoft Knowledge Base:
177188  (http://support.microsoft.com/kb/177188/EN-US/ ) FILE: Using HttpSendRequestEx for Large POST Requests

APPLIES TO
  • Microsoft Internet Explorer 4.0 128-Bit Edition
  • Microsoft Internet Explorer 4.01 Service Pack 2
Keywords: 
kbbug KB177190
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations

 

Related Support Centers