March 2018
Beginner to intermediate
410 pages
10h 40m
English
After filling out the form in a browser, and pressing the Login button, the contents will be sent to the server resource /Login using the POST method. We need to add such a resource to the server:
this.httpServer.Register("/Login", null, (req, resp) =>
{
// Code comes here
}, true, false, true);
Here we've registered only a POST handler. The first true parameter tells the server the resource is synchronous. The following false tells the server that we only serve the /Login resource, and not any sub-resources. The last true tells the server the resource requires a user session.
Read now
Unlock full access