| 193 | } |
| 194 | |
| 195 | static void curl_setup_http_get(CURL *curl, const char *url, |
| 196 | const char *custom_req) |
| 197 | { |
| 198 | curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L); |
| 199 | curl_easy_setopt(curl, CURLOPT_URL, url); |
| 200 | curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, custom_req); |
| 201 | curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite_null); |
| 202 | } |
| 203 | |
| 204 | static void curl_setup_http(CURL *curl, const char *url, |
| 205 | const char *custom_req, struct buffer *buffer, |
no outgoing calls
no test coverage detected