cURL / Mailing Lists / curl-library / Single Mail

curl-library

Downling CRL file from ca server is timing out

From: Sidde Gowda <engowdre_at_hotmail.com>
Date: Thu, 30 Aug 2012 04:39:37 +0000

    curl_rc = curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "VERBOSE failed %d", curl_rc);
#endif
    curl_rc = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "NOPROGRESS failed %d", curl_rc); curl_rc = curl_easy_setopt(curl, CURLOPT_URL, msg->frm_url);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "URL failed %d", curl_rc); curl_rc = curl_easy_setopt(curl, CURLOPT_HEADER, 0L);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "HEADER failed %d", curl_rc); curl_rc = curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, 1L);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "WILDCARDMATCH failed %d", curl_rc); curl_rc = curl_easy_setopt(curl, CURLOPT_PORT, 8080L);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "PORT failed %d", curl_rc); curl_rc = curl_setopt(curl, CURLOPT_RETURNTRANSFER, 1);
    curl_rc = curl_setopt(curl, CURLOPT_POST, 1);
    curl_rc = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "TIMEOUT failed %d", curl_rc); /* write to the file */
    curl_rc = curl_easy_setopt(curl, CURLOPT_WRITEDATA, file);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "WRITEDATA failed %d", curl_rc); /* call this function to get a socket */
    curl_rc = curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION,
                               http_curl_open_socket);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "OPENSOCKETFUNCTION failed %d", curl_rc); curl_rc = curl_easy_setopt(curl, CURLOPT_OPENSOCKETDATA,
                               (void *)msg->frm_ctx_idx);
    /* ASSERT_CLASS_LOGICAL */
    nv_assert(curl_rc == CURLE_OK, "OPENSOCKETDATA failed %d", curl_rc);

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-30