| 318 | } |
| 319 | |
| 320 | void Cicada::CURLConnection::setHeaderList(struct curl_slist *headerList) |
| 321 | { |
| 322 | if (headerList) { |
| 323 | curl_easy_setopt(mHttp_handle, CURLOPT_HTTPHEADER, headerList); |
| 324 | } else { |
| 325 | curl_easy_setopt(mHttp_handle, CURLOPT_HTTPHEADER, NULL); |
| 326 | } |
| 327 | } |
| 328 | void CURLConnection::setPost(bool post, int64_t size, const uint8_t *data) |
| 329 | { |
| 330 | if (post) { |