diff --git a/main.cpp b/main.cpp index 8af531f..e634cf4 100644 --- a/main.cpp +++ b/main.cpp @@ -61,6 +61,11 @@ int main(int arg, char* argv[]) curl_easy_setopt(curl,CURLOPT_URL,argv[1]); res = curl_easy_perform(curl); curl_easy_cleanup(curl); + if (res != CURE_OK) + { + cout<