震惊的发现c语言编译的程序能放apache里用浏览器打开
想试着做个网站,按照百度到的东西一步步做,发现c语言编译的exe能放apache里用浏览器打开,这是为什么啊?
2020-01-17 20:18
2020-01-17 21:13
2020-01-17 21:15
2020-01-18 09:21
2020-01-18 10:09
2020-01-19 13:34
2020-01-20 09:56

2020-01-20 10:12
程序代码:#include "raphters.h"
START_HANDLER (simple, GET, "simple", res, 0, matches) {
response_add_header(res, "content-type", "text/html");
response_write(res, "hello world");
} END_HANDLER
START_HANDLER (default_handler, GET, "", res, 0, matches) {
response_add_header(res, "content-type", "text/html");
response_write(res, "default page");
} END_HANDLER
int main() {
add_handler(simple);
add_handler(default_handler);
serve_forever();
return 0;
}
2020-01-20 10:14
,谢谢大哥指路,顺便,上不去github...
[此贴子已经被作者于2020-1-20 10:21编辑过]
2020-01-20 10:17