Dear friends,
I have developed a application in C++ language. The system is linux. I use
libcurl to call google customer search api and I can get the answer. But
always after the program run for a few hours the libcurl will report a 77
error, "Problem with the SSL CA cert (path? access rights?) ".No answer is
return by google. I don't know why. it works well for several hours and
then report the error.then all api requests will failed with the same
error.
However, when i kill the program and restart it, it work well again and
after a few hours get the same error 77.
I set the opt like below:
curl_easy_setopt(m_curlOne, *CURLOPT_FOLLOWLOCATION*, 1);
curl_easy_setopt(m_curlOne, *CURLOPT_WRITEFUNCTION*, *WriteFunc*);
curl_easy_setopt(m_curlOne, CURLOPT_WRITEDATA, &m_curPageOne);
curl_easy_setopt(m_curlOne, *CURLOPT_ERRORBUFFER*, errorBuffer);
curl_easy_setopt(m_curlOne, *CURLOPT_CONNECTTIMEOUT*,1);
curl_easy_setopt(m_curlOne, *CURLOPT_TIMEOUT*,1);
I also try set:
curl_easy_setopt(m_curlOne, *CURLOPT_CAINFO*,
"/etc/ssl/cert/cacert.pem");
curl_easy_setopt(m_curlOne, *CURLOPT_CAPATH*, "/etc/ssl/cert/");
But it does not work.
Can u please help me? I am waiting for your reply...
Regards,
Yue Kun
--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/z_qy93Yi5PIJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en