Hi
To my surprise, MS released an
"HTTP server API" a few years ago.
This simplifies the processing of http requests considerably.
The code is implemented in the kernel, is extremely stable and is also used by IIS.
The API is described here
https://docs.microsoft.com/en-us/windows/win32/http/http-server-api-overview.
Looking at the code examples, I've implemented the assembler version and tested it with a browser and
Postman http://masm32.com/board/index.php?topic=8916.msg97371#msg97371.
In the example, 2 verbs
GET &
POST are implemented.
GET returns a greeting message and
POST returns the same text that was sent in the body.
The code is simple and can be used for many purposes, such as online games, databases
http://masm32.com/board/index.php?topic=8352.msg92037#msg92037, IoT projects and custom applications.
A very convenient and flexible way to exchange data with a server is using
JSON. An assembler implementation can be found here
http://masm32.com/board/index.php?topic=9001.0.
For those who are concerned about security, the Server API also includes
TLS/SSL https://de.wikipedia.org/wiki/Transport_Layer_SecurityAttached is a working example and the necessary include file to build the project in 32/64 bit.
The included binary is compiled for 32 bit and ANSI strings.
Since you will likely want to test the code on your network, you will need administrative rights to register the URL to look for.
I've included the necessary resource to start with elevated privileges at the beginning of execution.
If you only want to work locally, these are not required.

I am very happy to see that we have all the building blocks in assembler and that we can realize very cool projects with ease.

If you miss some file, please check the GitHub repository.
Regards, Biterider