cURL / Mailing Lists / curl-users / Single Mail

curl-users

issue with libcurl

From: Peidong Chen <peidong_at_outlook.com>
Date: Wed, 25 Nov 2015 12:15:53 -0800

Hello,

I use libcurl to write C code to deal with the Http get and Http post
requests. It works fine for most time. However, the code randomly throw the
errors CURLE_COULDNT_CONNECT or CURLE_COULDNT_RESOLVE_HOST. And this is a
fatal error because my program will terminate after this error.

Here is my code in Github, and how can I manage to fix the issue?

https://github.com/peidong/drone/blob/master/Edison/main/include/http/http.h

Also the code here:
https://github.com/peidong/drone/blob/master/Edison/main/include/drone_include.h#L229-L327

Thank you so much!

Peidong
11/25

-------------------------------------------------------------------
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 2015-11-25