Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl_code = curl_easy_perform(session);
- long result = 0;
- curl_easy_get_info(session, CURLINFO_RESPONSE_CODE, &result);
- if(result == CURLE_OK && curl_code != CURLE_ABORTED_BY_CALLBACK) {
- //perform something
- } else {
- //report failure
- curl_easy_cleanup(curl);
- }
Add Comment
Please, Sign In to add comment