Function HttpSendRequest stopped working correctly after recent Windows update

MS-Projects 5 Reputation points
2023-01-20T02:48:32.01+00:00

Function HttpSendRequest ignores form data, and the web server gets the request as if the data were empty. If I send the same request via browser, then all works as expected.

My executable, which makes a call to HttpSendRequest, used to work just fine for many years. Now, it stopped working correctly. Compiling the code again does not help: function HttpSendRequest now does not work.

Function HttpSendRequest belongs to WININET.DLL, a system library located in C:\Windows\System32. The file I currently have is dated as Tuesday, ‎November ‎8, ‎2022, ‏‎4:13:56 PM, and shows version 11.019041.2193.

Would it be a good idea to replace it with an older version? I could not do it though at all, the file is always busy, even in safe mode.

Is there a way for me to force the executable to load a different WININET.DLL? I tried putting an older version in the same folder where the executable is, but the executable ignores it because WININET.DLL is always already in the memory.

Any suggestion on what to do before Microsoft hopefully fixes it with a new update?

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments

1 answer

Sort by: Oldest
  1. MS-Projects 5 Reputation points
    2023-01-22T18:46:06.39+00:00

    Dear Moderator, please remove this question.

    It appeared to be a problem with PHP on the web server, upgraded to PHP 8.0, which introduced more strict rules for the headers of the requests. Apparently, inconsistency in HTTP_ACCEPT and CONTENT_TYPE caused the POST data to be ignored. Interestingly, downgrading to PHP 7.4, after upgrading to PHP 8.0, would not fix the problem. Only re-installation of a new site with PHP 7.4 makes my old executable work again as designed.
    So, the topic of this question is misleading and not helpful for other people. Please, remove this question.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.