Recently I learned a small open source library Tinyhttp, thinking about writing an http server myself to verify it
The code can be cloned on github if you are interested
https://github.com/zywblog/WebSocket
Contains explanations, personal notes and understandingThe first thing to do is to log in to the interface, and return a static web page, the result is as follows:
Because the account entered casually, it shows login failed
The following is to verify the addition. Note that the following not only prints the result but also prints the two parameters.
The following is done to register users and display the current user information. The database mysql is used here