Voici mon code:
CURL *curl; CURLcode res; curl = curl_easy_init(); if (!curl) { printf("Erreur lors de l'initialisation de cURL\n"); return; } // Mode verbose pour le debugage curl_easy_setopt( curl, CURLOPT_VERBOSE, 1 ) // Echec et abandon a la moindre erreur curl_easy_setopt( curl, CURLOPT_FAILONERROR, 1); curl_easy_setopt(curl, CURLOPT_URL, "http://www.google.fr"); curl_easy_setopt(curl, CURLOPT_PROXY,"http://c-proxyconf.rd.xxxx.fr"); res = curl_easy_perform(curl); curl_easy_cleanup(curl);
il y a dans mon res "CURLE_COULDNT_CONNECT"
Je ne vois pas ou est le souci...
Merci de votre aide.
|