欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

curl: (1) Received HTTP/0.9 when not allowed 解决方法 有大用

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"

————————————————

来自  https://blog.csdn.net/xzlAwin/article/details/117325549



普通分类: