12019 ERROR_INTERNET_INCORRECT_HANDLE_STATE The
requested operation cannot be carried out because the handle supplied is not
in the correct state.
I have check every API call and haven't got past this after my
HttpSendRequestEx...
lngRetVal = HttpSendRequestEx(rc1.hRequest, NULL, NULL, HSR_ASYNC,
(DWORD)&rc1);
**(VB programmer in C++)
BUG: Error 12019 When Calling InternetWriteFile
--------------------------------------------------------------------------------
The information in this article applies to:
Microsoft Internet Explorer (Programming) versions 4.0, 4.01
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
"Matt Butler" <mbut...@yahoo.com> wrote in message news:#UQfyzMgAHA.1564@tkmsftngp02...
That gives me the infamous 997 Error_io_pending.
"SoftLion" <nos...@replyToGroup.com> wrote in message
news:#L5cwxTgAHA.1572@tkmsftngp04...
"Matt Butler" <mbut...@yahoo.com> wrote in message news:OIK1RiWgAHA.1756@tkmsftngp02...