cURL / Mailing Lists / curl-users / Single Mail

curl-users

Curl error code 35 after Mac OS upgrade from Mountain Lion to Mavericks

From: Madhavi Gundeti <madhavi.gundeti07_at_gmail.com>
Date: Tue, 24 Jun 2014 16:13:27 +0530

Hi,

I am getting curl errors 35 and 28 continuously for my application after
upgrading the Mac OS from Mountain Lion to Mavericks.

 If I freshly install my application on Mavericks then no SSL errors. Only
during upgrades I am seeing these errors.

I found info regarding this at below URL.

http://curl.haxx.se/mail/archive-2013-10/0036.html#start

 But how to build our own curl? It will be great help if you provide some
examples.

I found one temporary solution which is working 70%(means not working all
the time) adding SSLv3 version to the curl request.

My Application Sample Code:

CURLcode res;

FILE *f = 0;

const std::string& url = // Here the server URL;

f = fopen(m_OutputFilename.c_str(), "w");

if(!f)

return false;

 char cError[CURL_ERROR_SIZE]="";

curl_easy_setopt (m_pCURL, CURLOPT_ERRORBUFFER, &cError );

curl_easy_setopt(m_pCURL, CURLOPT_TIMEOUT, 30); // 30 seconds time limit

curl_easy_setopt(m_pCURL, CURLOPT_URL, url.c_str());

curl_easy_setopt(m_pCURL, CURLOPT_USERAGENT, s_UserAgent.c_str());

curl_easy_setopt(m_pCURL, CURLOPT_HTTPPOST, form.GetForm());

curl_easy_setopt(m_pCURL, CURLOPT_NOSIGNAL, 1);

       if(f)

{

curl_easy_setopt(m_pCURL, CURLOPT_WRITEFUNCTION,
CWebRequest::CURLWriteCallback);

curl_easy_setopt(m_pCURL, CURLOPT_FILE, f);

}

curl_easy_setopt(m_pCURL, CURLOPT_SSLVERSION, 3); //Added for OS upgrade
bug fix.

res = curl_easy_perform(m_pCURL);

MessageLog.Write("cURL return code", res);

MessageLog.Write("Error Message", cError);

// Below loop added because after 7th attempt curl call succeeded(This
is inconsistent).

if(res != 0)

{

int count1 = 0;

while (count1 < 10)

{

res = curl_easy_perform(m_pCURL);

MessageLog.Write("cURL return code", res);

MessageLog.Write("Error Message", cError);

if(res == 0)

break;

count1++;

 }

}

Error Log:

Adding handle: conn: 0x180a000

, 0000000031 bytes (0x0000001f)

0000: Adding handle: conn: 0x180a000.

Adding handle: send: 0

, 0000000023 bytes (0x00000017)

0000: Adding handle: send: 0.

Adding handle: recv: 0

, 0000000023 bytes (0x00000017)

0000: Adding handle: recv: 0.

Curl_addHandleToPipeline: length: 1

, 0000000036 bytes (0x00000024)

0000: Curl_addHandleToPipeline: length: 1.

- Conn 0 (0x180a000) send_pipe: 1, recv_pipe: 0

, 0000000048 bytes (0x00000030)

0000: - Conn 0 (0x180a000) send_pipe: 1, recv_pipe: 0.

About to connect() to SERVER port 443 (#0)

, 0000000060 bytes (0x0000003c)

0000: About to connect() to SERVER port 443 (#0).

  Trying X.X.X.X...

, 0000000025 bytes (0x00000019)

0000: Trying X.X.X.X....

Connected to SERVER (X.X.X.X) port 443 (#0)

, 0000000066 bytes (0x00000042)

0000: Connected to SERVER (X.X.X.X) port 443 (#0).

Unknown SSL protocol error in connection to SERVER:-36

, 0000000072 bytes (0x00000048)

0000: Unknown SSL protocol error in connection to SERVER:-36.

Please suggest me how to solve this SSL issue permanently.

Thanks and Regards,
Madhavi G.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-06-24