Hi, I have some issues with the libcurl. I'm trying to integrate the libcurl in my application. It's currently working fine with the protocol HTTP but when I try to do a request with HTTPS I have this : Trying 93.184.216.34:443... * Connected to example.com (93.184.216.34) port 443 (#0) * mbedTLS: Connecting to example.com:443 * mbedTLS: ssl_init failed * Closing connection 0 curl_easy_perform() failed: SSL connect error
I was wondering if you could help me setup the library correctly so it works with HTTPS. I'm working on mingw32 which help me to configure my ESP8266. I sent you my config file for curl it may help you. Also here is my code CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); // curl_easy_setopt(curl, CURLOPT_URL, "http://httpbin.org/"); /* ask libcurl to show us the verbose output */ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); // curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L); /* example.com is redirected, so we tell libcurl to follow redirection */ curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); /* Perform the request, res will get the return code */ res = curl_easy_perform(curl); /* Check for errors */ if(res != CURLE_OK) fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res)); /* always cleanup */ curl_easy_cleanup(curl); vTaskDelete(NULL); } Best regards, Thomas
curl_config.h
Description: Binary data
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html