admin管理员组文章数量:1640595
原文
windows环境下curl报错:Protocol “'http” not supported or disabled in libcurl
原因:window命令行不支持单括号引用
解决方案:将单括号删除
例如:curl ‘http://localhost:9200/?pretty’
在window命令行应改为:curl http://localhost:9200/?pretty
原始解决方案来源:https://stackoverflow/questions/6684235/perl-curl-1-protocol-http-not-supported-or-disabled-in-libcurl
curl在windows上使用的注意事项:
curl -XPOST http://localhost:9200/video/md/1 -d “{
“tvId\”:\”1001\”,\”name\”:\”test\”,\”order\”:1}” -d 内的参数需要用双引号包起来,数据中的双引号需要转义
在学习操作elasticSearch时在windows用curl,参考:http://wwwblogs/Fred1987/p/6020145.html
Reference
- https://blog.csdn/zwqlxx/article/details/77684612
写在最后
欢迎大家关注鄙人的公众号【麦田里的守望者zhg】,让我们一起成长,谢谢。
版权声明:本文标题:windows环境下curl报错:Protocol “‘http“ not supported or disabled in libcurl 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1729319380a1195689.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论