1 #include <event_client.h>
4 typedef struct _evcurl_global_data {
11 typedef struct _evcurl_request_data
13 evcurl_global_data *global;
15 char errdesc[CURL_ERROR_SIZE];
18 long PlainPostDataLen;
22 struct curl_slist * headers;
23 } evcurl_request_data;
25 typedef struct _sockwatcher_data
27 evcurl_global_data *global;
36 sta = curl_easy_setopt(chnd, (CURLOPT_##s), (v)); \
38 CtdlLogPrintf(CTDL_ERR, "error setting option " #s " on curl handle: %s", curl_easy_strerror(sta)); \
42 int evcurl_init(evcurl_request_data *handle,
47 void evcurl_handle_start(evcurl_request_data *handle);