title: Getting Error: "Protocol https not supported or disabled in libcurl" in Libcurl
body: <p>I had a problem while making a URL call with curl.</p>
  <p>First declare the curl.h file in curl version 7.40.0</p>
  <pre><code>#include &quot;curl.h&quot; // curl-7.40.0
  </code></pre>
  <p>In the function that calls curl...</p>
  <pre><code>CURL *curl = curl_easy_init();
  CURLcode res;
  curl_easy_setopt(curl, CURLOPT_URL,&quot;https://www.google.com&quot;);
  curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, TURE);
  res = curl_easy_perform(curl);
  </code></pre>
  <p>When executing the above code, the following error occurs</p>
  <ul>
  <li>Rebuilt URL to: <a href="https://www.google.com/" rel="nofollow noreferrer">https://www.google.com/</a></li>
  <li>Protocol &quot;https&quot; not supported or disabled in libcurl</li>
  <li>Closing connection -1</li>
  </ul>
  <p>Likewise, when I run it with the curl command in the Linux console, it runs normally. (curl version 7.19.7)</p>
  <pre><code>curl https://www.google.com
  </code></pre>
  <p>Can you tell me what's the problem?</p>
  <p>thank you!</p>