I implemented an http client using libevent's http.h but I have some bug when trying to make-http request. What's more strange is that bug doesn't always happen when downloading files.
I used evhttp_request_new
and evhttp_request_free
and evhttp_request_new
has a callback parameter, which the documentation states "The callback is executed when the request completed or an error occurred." What does it mean by error occurred and how do I check whether there is an error or not?