curl-library
connecting twice?
Date: Thu, 11 Apr 2002 13:33:30 +0200
Hi!
I'm using libcurl from VC++. For some reason curl
makes the same connection a second time.
Ok, if i'm having a break of ca 10 seconds between curl_easy_perform
and curl_easy_clenaup it works fine and i'm having one connection.
If i don't have a break between curl_easy_perform and curl_easy_cleanup
it makes one connction and then a second with the same paramters.
curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
curl_easy_setopt(curl, CURLOPT_FILE, &output);
curl_easy_setopt(curl, CURLOPT_SSLCERT, cer);
curl_easy_setopt(curl, CURLOPT_SSLCERTPASSWD, pwd);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1);
curl_easy_setopt(curl, CURLOPT_CAINFO, cacert);
curl_easy_setopt(curl, CURLOPT_SSLVERSION, 3);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, sslerror);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
Thank you!
Received on 2002-04-11