cURL / Mailing Lists / curl-library / Single Mail

curl-library

linux curl_easy_perform error

From: Cornu Nicolas <nicolas.cornu_at_club-internet.fr>
Date: Sat, 30 Apr 2005 20:12:31 +0200

Hello,

I am developping a linux windows portable server.
I use libcurl and my app crash on linux on curl_easy_perfrom

if(curl)
{
    if(proxy.c_str())
    {
        GLOBALS::logger->debug() << "CommSPG:InterrogerSPG: defining curl
proxy."; GLOBALS::logger->write();
        curl_easy_setopt(curl, CURLOPT_PROXY, proxy.c_str());
    }
    if(proxyUserPwd.c_str())
    {
        GLOBALS::logger->debug() << "CommSPG:InterrogerSPG: defining proxy
password"; GLOBALS::logger->write();
        curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD,proxyUserPwd.c_str());
    }
    curl_easy_setopt(curl, CURLOPT_URL, url.data());
    curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
    curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
    curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10);
    curl_easy_setopt(curl, CURLOPT_POSTFIELDS,data.data());
    GLOBALS::logger->debug() << "CommSPG:InterrogerSPG: performing curl
request (curl_easy_perform)"; GLOBALS::logger->write();
    res = curl_easy_perform(curl);
    GLOBALS::logger->debug() << "CommSPG:InterrogerSPG: performing curl
cleanup (curl_easy_cleanup)"; GLOBALS::logger->write();
    curl_easy_cleanup(curl);
}
---------------------------------------------
logs display:
Linux: CommSPG:InterrogerSPG: performing curl request (curl_perform)

Abandon
---------------------------------------------

The application run on Suse 9.2 French
Abondon mean Aborted or Aborting in english

Thanks in advance,

NC
Received on 2005-04-30