Steven Taylor
Steven Taylor

Reputation: 9

How to solve this ? Curl Error : Protocol "https" not supported or disabled in libcurl

I was looking everywhere how to solve this problem and nothing.

I am using Centos 6 VPS. Thanks

Upvotes: 0

Views: 3786

Answers (3)

Burak
Burak

Reputation: 2495

As @Icarus3 mentioned, make sure SSL feature is enabled.

$ curl --version

See curl/CMakeLists.txt.

if(WIN32 OR CURL_USE_SECTRANSP OR CURL_USE_SCHANNEL OR CURL_USE_MBEDTLS OR CURL_USE_NSS OR CURL_USE_WOLFSSL)
  set(openssl_default OFF)
endif()

If you are using CMake to build curl, you can use the following command.

$ cmake -D BUILD_SHARED_LIBS=OFF \
        -D CURL_USE_SCHANNEL=ON \
        -D CURL_STATIC_CRT=ON ..

Upvotes: 0

孙小球
孙小球

Reputation: 1

On Ubuntu, you may install the development package, which is libssl-dev:

sudo apt-get install libssl-dev

It works for me.

Upvotes: -1

Icarus3
Icarus3

Reputation: 2350

Your libcurl is built without ssl support. e.g. --without-ssl

libcurl FAQ

Upvotes: 2

Related Questions