| 220 | } |
| 221 | |
| 222 | void HTTPClient::setPostFields(const std::string& input) { |
| 223 | curl_easy_setopt(http_session_, CURLOPT_POSTFIELDSIZE, input.length()); |
| 224 | curl_easy_setopt(http_session_, CURLOPT_COPYPOSTFIELDS, input.c_str()); |
| 225 | } |
| 226 | |
| 227 | void HTTPClient::setPostSize(size_t size) { |
| 228 | curl_easy_setopt(http_session_, CURLOPT_POSTFIELDSIZE, size); |