| 216 | } |
| 217 | |
| 218 | std::string HTTPClient::escape(std::string string_to_escape) { |
| 219 | return curl_easy_escape(http_session_, string_to_escape.c_str(), gsl::narrow<int>(string_to_escape.length())); |
| 220 | } |
| 221 | |
| 222 | void HTTPClient::setPostFields(const std::string& input) { |
| 223 | curl_easy_setopt(http_session_, CURLOPT_POSTFIELDSIZE, input.length()); |