安装
brew install nc启动服务端(8001为端口号)
nc -l 8001启动客户端
nc 127.0.0.1 8001浏览器访问
给浏览器回信
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Connection: close
hello通过nc命令模拟客户端或服务器端程序
阅读 82
2022-03-10
安装
brew install nc启动服务端(8001为端口号)
nc -l 8001启动客户端
nc 127.0.0.1 8001浏览器访问
给浏览器回信
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Connection: close
hello相关推荐
精彩评论(0)