使用BIO实现的httpServer,特点是支持任意长度请求并打印请求内容。
使用curl命令测试:
curl -I localhost:8080
curl -X POST -d test localhost:8080
curl localhost:8080/index.html
curl -X POST -d test -H "Content-Length:9999" localhost:8080 (Content-Length攻击)
cbwleft / biohttpserver Goto Github PK
View Code? Open in Web Editor NEW使用bio实现的http服务器