Protocol Https Not Supported or Disabled in Libcurl

Protocol Https not supported or disabled in curl

I can actually reproduce this with your curl command:

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

The ' before https made me suspicious so I tried without the quotes around the URL:

curl -u {'username-key'} -H 'Content-Type:application/json' -X POST -d '{"dialog_node":"Animals"}' https://gateway.watsonplatform.net/assistant/api/v1/workspaces/{my workspace id}/dialog_nodes/LivingThings?version=2018-07-10

And this works for me.

The double-quotes of the error message make this barely recognizable, it actually says:

Protocol 'https not supported

It interprets the escaping (single-)quotes as part of the URL/protocol.

On Windows cmd it is a known behaviour that quoting only works with double quotes.

Protocol https not supported or disabled in libcurl ubuntu python

I didn't find what causes the problem . but I downloaded the repository manually and edited the CMakeList.txt to use the local file URL.

Protocol https not supported or disabled in libcurl - how do I check current version of libcurl

You can check the version of curl by running:

curl --version

If curl is not working for you, you might want to try wget instead. Wget is commonly used for downloading files from web servers, and it has a similar feature set to curl.

wget https://example.com/example.tar.gz

Protocol https not supported or disabled in libcurl

Create a script called info.php and in it put <?php phpinfo(); ?>. Save it somewhere on your site so you can access it from a browser.

Find the curl section and check what Protocols are supported. If https is not listed, then cURL was not built with SSL support and you cannot use https.

You can also look in the very first section for Registered PHP Streams and see if https is listed. If so, then you can fallback to use PHP's socket functions or functions such as file_get_contents() or fopen with a context.

Since you mention you are on a shared host, request that your host recompile PHP so that both PHP and curl are built with OpenSSL support so you can use encryption, otherwise you will need to find another solution.

Rustup says protocol https not supported or disabled in libcurl

Probably not what you want to hear, but they have known issues at the moment with ARM.

This workaround seems to work for me:

  • Directly download rustup-init from https://github.com/rust-lang-nursery/rustup.rs for your platform
  • env RUSTUP_USE_HYPER=1 ./rustup-init

It should also work to export RUSTUP_USE_HYPER=1 (assuming you aren't using tcsh) before running the rustup script, but the above is what I tested and used.



Related Topics



Leave a reply



Submit