[UWP] [C++/WinRT] Receive and respond to http POST requests

Acurisu 1 Reputation point

I'm somewhat new to UWP and C++/WinRT and wanted to port one of my applications to it. I'm now struggling to implement a http server that can receive and respond to POST requests. My original approach of using cpprestsdk does not work as http_listener does not support C++/WinRT going by 858. I'm now seeking for other approaches I could take. If possible without having to create an intermediary.

Maybe to add: The requests are coming from a local application (which I can't / don't want to influence) which is running on the same computer as the UWP application.

Edit: In the end I don't need to deal with much of the HTTP standard as I'm only really interested in the JSON data sent by the request. I'm currently trying to solve my issue by using sockets but if possible I'd rather not.

Universal Windows Platform (UWP)
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,604 questions
{count} votes