Guest User

Untitled

a guest
Oct 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. curl_code = curl_easy_perform(session);
  2. long result = 0;
  3. curl_easy_get_info(session, CURLINFO_RESPONSE_CODE, &result);
  4.  
  5. if(result == CURLE_OK && curl_code != CURLE_ABORTED_BY_CALLBACK) {
  6. //perform something
  7. } else {
  8. //report failure
  9. curl_easy_cleanup(curl);
  10. }
Add Comment
Please, Sign In to add comment