| 326 | } |
| 327 | } |
| 328 | void CURLConnection::setPost(bool post, int64_t size, const uint8_t *data) |
| 329 | { |
| 330 | if (post) { |
| 331 | curl_easy_setopt(mHttp_handle, CURLOPT_POST, 1); |
| 332 | curl_easy_setopt(mHttp_handle, CURLOPT_POSTFIELDSIZE, (long) size); |
| 333 | curl_easy_setopt(mHttp_handle, CURLOPT_POSTFIELDS, data); |
| 334 | |
| 335 | } else { |
| 336 | curl_easy_setopt(mHttp_handle, CURLOPT_POST, 0); |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | int CURLConnection::my_trace(CURL *handle, curl_infotype type, |
| 341 | char *data, size_t size, |
no outgoing calls
no test coverage detected