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 Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

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…/ […]

Leave a Reply

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

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading