c-program win32 tinyhttp
get/post Parse、c-program CGI
Visual Studio 2019, Windows 10
// httpd.h
// Variables you need to modify
// html ROOT-path
#define ROOTDIR "template"
// CGI.exe path (need to compile the file <cgi.cpp> in advance)
#define CGI_PATH "CGI.exe"
// just the server name in the Response Header
#define SERVER_STRING "Server: CXN-httpd/0.1.0\r\n"
J. David Blackstone