Curl: (1) Received HTTP/0.9 When Not Allowed 解决方法 - 掘金

curl: (1) Received HTTP/0.9 when not allowed 解决方法 xzlAwin 2021-07-14 6,997 阅读1分钟

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"

avatar xzlAwin 创作等级LV.3 45 文章 50k 阅读 7 粉丝 目录 收起

Từ khóa » Http2 Curl (1) Received Http/0.9 When Not Allowed