Merci lsd pour ta réponse.
En fait précédemment je ne précisais pas la version.
J'avais alors le message :
* Connected to
www.newbiecontest.org (212.83.176.16) port 443 (#0)
* Unknown SSL protocol error in connection to
www.newbiecontest.org:443Si je précise : curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
=>
* error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol version
Tu as raison, les protocoles SSL2 et 3 ne sont plus utilisés (on dit dans la doc : "SSLv2 and SSLv3 are refused completely since curl 7.77.0 ")
J'ai fait des tests avec - je crois - tous les protocoles possibles..
Voici ma requête :
if(curl)
{
curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_DEFAULT);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_COOKIE, SMFCOOkie89);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(curl, CURLOPT_URL, url_epreuve);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
res = curl_easy_perform(curl);
...
}
PS : j'utilise la dernière version curl-7.76.1-win32-mingw
jfcl1