ssl - curl_easy_perform() throwing error -


while i'm calling curl_easy_perform() it's crashing , i'm getting "ssl read: error:00000000:lib(0):func(0):reason(0), errno 110". need resolve this.

note: after curl_easy_perform sends http1.1 command , before receives http 200 ok, if internet disconnected error comes.

if (curl) {    curl_easy_setopt(curl, curlopt_verbose, 1);    curl_easy_setopt(curl, curlopt_ssl_verifypeer, 0);    curl_easy_setopt(curl, curlopt_ssl_verifyhost, 0);     curl_easy_setopt(curl, curlopt_timeout, 30);    curl_easy_setopt(curl, curlopt_writefunction, read_data);    //url_easy_setopt(curl, curlopt_writedata, client);    curl_easy_setopt(curl, curlopt_url, "https://***.com:1027/page");      curl_easy_setopt(curl, curlopt_httppost, formpost);    curl_easy_setopt(curl, curlopt_nosignal, 0);    printf("sending perform request\n");    try{    res = curl_easy_perform(curl); // perform request, res return code     printf("%s",curl_easy_strerror(res));    }catch(int e){        printf("catch error\n");        fflush(stdout);    }    printf("perform done");     if (res != curle_ok) { /* check errors */        fprintf(stderr, "curl_easy_perform() failed: %s\n",                curl_easy_strerror(res));        printf(" uploading failed \n");        fflush(stdout);        result = 0;    } 


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -