在终端输入curl 'http://localhost:9200/?pretty' 发送http请求报错:curl: (1) Protocol "'http" not supported or disabled in libcurl
解决办法:把单引号换为双引号即可,curl "http://localhost:9200/?pretty"
本文介绍了一个使用curl命令时出现的错误:当使用单引号括起URL时,命令无法正常工作。解决方法非常简单,只需将单引号替换为双引号即可。
在终端输入curl 'http://localhost:9200/?pretty' 发送http请求报错:curl: (1) Protocol "'http" not supported or disabled in libcurl
解决办法:把单引号换为双引号即可,curl "http://localhost:9200/?pretty"
511
18万+
424
1032

被折叠的 条评论
为什么被折叠?