curl: (1) Protocol 'http not supported or disabled in libcurl

在windows中使用curl的时候,命令为 curl ‘http://localhost:9200/?pretty‘

出现这个报错 curl: (1) Protocol ‘http not supported or disabled in libcurl

改为curl "http://localhost:9200/?pretty"即可

在linux中使用curl ‘http://localhost:9200/?pretty‘是正常的

curl: (1) Protocol 'http not supported or disabled in libcurl

原文地址:https://www.cnblogs.com/chuwu/p/11365481.html

时间: 2024-08-01 04:48:20

curl: (1) Protocol 'http not supported or disabled in libcurl的相关文章

python error: curl: (1) Protocol "'https" not supported or disabled in libcurl

python 调用curl访问一个网页时,出现error: curl: (1) Protocol "'https" not supported or disabled in libcurl 控制台直接curl xxx是ok的 output = subprocess.check_output(["curl","https://stackoverflow.com/questions/6884669/curl-1-protocol-https-not-suppo

curl: (1) Protocol "'https" not supported or disabled in libcurl的解决方法

在win10中使用curl 下载地址:https://curl.haxx.se/download.html 1,安装curl[我按照在了D盘] 2,配置环境变量——curl.exe所在的位置 3,配置Path——%CURL_HOME% 4,运行curl——curl --help 5,API调用 6,这里遇见了坑——curl: (1) Protocol "'https" not supported or disabled in libcurl 解决方法:把文档中的 '' 引号,改成 &q

curl 不支持 https(Protocol https not supported or disabled in libcurl)

curl默认安装完后是只支持http协议而不支持https协议的. 可以先用curl -V查看当前curl支持哪些协议: [[email protected] /]# curl -V curl 7.19.4 (x86_64-unknown-linux-gnu) libcurl/7.19.4 OpenSSL/1.0.2k zlib/1.2.11 Protocols: tftp ftp telnet dict http file ftps 可以看到并不支持https协议.若用curl命令访问http

protocol http not supported or disabled in libcurl apt-get

ubuntu 14.04 碰到了这个莫名其妙的问题.谷歌了一把,解决方案如下:http://askubuntu.com/questions/683857/curl-1-protocol-https-not-supported-or-disabled-in-libcurl 即重新编译安装curl包(lib curl). wget https://curl.haxx.se/download/curl-7.51.0.tar.gz tar -xvf curl-7.51.0.tar.gz cd curl-

解决curl: (48) An unknown option was passed in to libcurl

找了大牛解决了这个问题,有大牛的感觉真好!快速又准确!记录一下,解决办法: (百度了好多方法都解决不了我这边的问题!) 在一台服务器上报告了 curl: (48) An unknown option was passed in to libcurl 使用过 :  locate -r /curl$ 出现 很多curl版本,有点凌乱: 网上百度找了 curl的安装和下载,安装的时候,很顺利,启用的时候,就会报告: curl: (48) An unknown option was passed in

curl --connect-timeout 判断国内外网络windows 批处理

1.下载编译curl curl 下载地址:http://curl.haxx.se/download.html ,下载后解压到一个目录,使用vs开发者工具里的 “Visual Studio 命令提示(2010)” 打开命令行, 切换到源码目录 F:\curl-7.46.0\winbuild\,使用命令 nmake/f Makefile.vc mode=static 编译一下,在 F:\curl-7.46.0\builds\libcurl-vc-x86-release-static-ipv6-ssp

swift分布式存储多节点部署

1.机器 192.168.1.211    Proxy Node 192.168.1.212    Storage Node 192.168.1.213    Storage Node 192.168.1.214    Storage Node 系统为SLES11sp1 2.配置软件源 因为公司服务器无法连外网,所以配置局域网源和本地源来搭建环境 上传ISO镜像文件到各台机器 SLES-11-SP4-DVD-x86_64-GM-DVD1.iso 每台机器挂载镜像,配置本地源 # mkdir /m

用持续集成工具Travis进行构建和部署

用持续集成工具Travis进行构建和部署 摘要:本文简单说明了如何使用持续集成工具Travis进行构建和部署的过程. 1. 概述 持续集成(Continuous Integration)是软件开发过程中的重要环节,不论是在开发环境,还是生产环境,其好处都是可以让团队尽快得到反馈,从而尽早发现和解决问题,不要等到用户来报告问题,影响产品和团队的声誉.越早越快地发现和解决问题,成本越低,这也是敏捷开发的基本目的之一. 持续集成的工具有不少,著名的有CruiseControl.JetBrains的Te

php中curl不支持https的解决办法

在php程序中使用curl去访问https站点时,报错:Protocol https not supported or disabled in libcurl 该错误信息表示php当时编译时使用的curl库不支持https, 验证方法为你的curl安装目录/bin/curl  -V  显示如下:Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp这表示curl是不支持 https的 为了支持https,需要下载源