https://github.com/amstonn/simple-http-server
Simple HTTP server 简易HTTP服务器
https://github.com/amstonn/simple-http-server
cpp http http-server
Last synced: 25 days ago
JSON representation
Simple HTTP server 简易HTTP服务器
- Host: GitHub
- URL: https://github.com/amstonn/simple-http-server
- Owner: Amstonn
- Created: 2024-11-12T07:22:38.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-13T06:43:54.000Z (8 months ago)
- Last Synced: 2025-03-23T00:26:14.458Z (4 months ago)
- Topics: cpp, http, http-server
- Language: C++
- Homepage:
- Size: 3.64 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple HTTP server 简易HTTP服务器
## 运行方式
- 到build目录执行 make
- 然后启动bin目录下的可执行文件即可*注意:在HttpServer.cpp的accept_reques函数实现中可能需要修改htdocs所在的路径*
## 核心框架

## 访问
- 通过访问http://localhost:8888/index.html可以访问静态文件资源

- 通过访问http://localhost:8888/firstcgi可以访问htdocs中的cgi程序 子进程运行程序并将输出结果返回给客户端
