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