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.