title: Curl simple https request returns nothing C++
body: <p>I'm using Visual Studio C++ 2010 and it's working just fine with cURL but the problem is that https requests returns nothing. instead of showing the output:</p>
  
  <pre><code>#include "StdAfx.h"
  #include &lt;stdio.h&gt;
  #include &lt;curl/curl.h&gt;
  #include &lt;conio.h&gt;
  
  int main(void)
  {
    CURL *curl;
    CURLcode res;
  
    curl = curl_easy_init();
    if(curl) {
      curl_easy_setopt(curl, CURLOPT_URL, "https://www.google.com");
      curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
      curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
      res = curl_easy_perform(curl);
      curl_easy_cleanup(curl);
    }
    _getch();
    return 0;
  }
  </code></pre>
  
  <p>This code for example, it's just a https request to Google, but it returns nothing just because it starts with https. and if I take away the "s" of https, it works just fine: "http://www.google.com.br" shows the result normally. what am I missing here? I'm using the example from the cURL.
  I tried with other websites and same thing happened. :/ like <a href="https://www.facebook.com" rel="nofollow">https://www.facebook.com</a></p>
  
  <p>Btw also if you guys know how do I store the webpage content in a string, I would be glad to know.</p>
  
  <p>Thanks in advance. :)</p>