BUG: Error 12019 When Calling InternetWriteFile

Exclusion de responsabilité du contenu obsolète de la base de connaissances

Cet article a été rédigé sur les produits pour lesquels Microsoft n’offre plus aucune prise en charge. Par conséquent, cet article est proposé « en l’état » et ne sera plus mis à jour.

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 FILE: Using HttpSendRequestEx for Large POST Requests
Propriétés

ID d'article : 177190 - Dernière mise à jour : 22 juin 2014 - Révision : 1

Commentaires