curl: (1) Received HTTP/0.9 when not allowed 解决方法 问题描述 今天使用curl工具连接node.js的socket端,curl命令: curl "http://127.0.0.1:1337" 错误信息 curl: (1) Received HTTP/0.9 when not allowed 解决方法 指定curl的http版本为0.9 curl --http0.9 "http://127.0.0.1:1337"