Microsoft 365 – resolving error : curl: (1) Protocol “‘https” not supported or disabled in libcurl

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

Hi All,

Greetings for the day 🙂 LIFE IS BEAUTIFUL 🙂

Today very small article, new issue and resolution 🙂

Background : From our UNIX team we got request that they need to access the SharePoint online document library. So UNIX team needs a REST API that can be executed with cURL

Since cURL is new for me so tried to investigate and exploring cURL

while exploring cURL, I got an error – curl: (1) Protocol “‘https” not supported or disabled in libcurl

Issue : cURL – client URL – is command line tool, mostly used for transferring data to and from server

I am experimenting following command in command prompt

curl --request Get 'https://knowledge-junction.in'

This command suppose to return the HTML output of site – https://knowledge-junction.in but it returning an error

curl: (1) Protocol “‘https” not supported or disabled in libcurl

curl: (1) Protocol "'https" not supported or disabled in libcurl
Fig : cURL – error – curl: (1) Protocol “‘https” not supported or disabled in libcurl

Solution :

After googling bit it found that there is an issue with ‘(single-quotes) used to specify the URL

If we use “(double quote) for specifying the URL it showing correct output as

C:\>curl --request GET "https://knowledge-junction.in"

 cURL - specifying URL in double quotes
Fig : cURL – specifying URL in double quotes

Thanks for reading 🙂 NJOY Wonderful LIFE 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

2 Responses

  1. December 7, 2021

    […] Our other curl article – Microsoft 365 – resolving error : curl: (1) Protocol “‘https” not supported or disabled in libcurl – https://knowledge-junction.com/2021/12/04/microsoft-365-resolving-error-curl-1-protocol-https-not-s… […]

  2. December 11, 2021

    […] Microsoft 365 – resolving error : curl: (1) Protocol “‘https” not supported or disabled in libcurl – https://knowledge-junction.com/2021/12/04/microsoft-365-resolving-error-curl-1-protocol-https-not-su…/ […]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: