summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ddfad98)
Change-Id: I4b0a104cc234f330c0278a67feaa38a664a9b742
#define URI_PATH_LEN 64
#define REQ_CON_TIMEOUT 5L
#define URI_PATH_LEN 64
#define REQ_CON_TIMEOUT 5L
typedef struct _wu_json_handle {
JsonBuilder *builder;
typedef struct _wu_json_handle {
JsonBuilder *builder;
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, json_data);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _post_response_write_callback);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, REQ_CON_TIMEOUT);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, json_data);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, _post_response_write_callback);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, REQ_CON_TIMEOUT);
+ curl_easy_setopt(curl, CURLOPT_TIMEOUT, REQ_TIMEOUT);
response = curl_easy_perform(curl);
response = curl_easy_perform(curl);