@param responseCode Null not allowed
| 260 | |
| 261 | /// @param responseCode Null not allowed |
| 262 | bool perform(long *responseCode) { |
| 263 | if (CURLE_OK != curl_easy_perform(_curl)) |
| 264 | return false; |
| 265 | CURLcode code = curl_easy_getinfo(_curl, CURLINFO_RESPONSE_CODE, responseCode); |
| 266 | if (code != CURLE_OK || !(*responseCode >= 200 && *responseCode < 300)) { |
| 267 | CC_LOG_ERROR("Curl curl_easy_getinfo failed: %s", curl_easy_strerror(code)); |
| 268 | return false; |
| 269 | } |
| 270 | // Get some mor data. |
| 271 | |
| 272 | return true; |
| 273 | } |
| 274 | }; |
| 275 | |
| 276 | //Process Get Request |
no outgoing calls
no test coverage detected