code:checkMistakesFromCurl
Этот коммит содержится в:
4
main.cpp
4
main.cpp
@@ -22,6 +22,10 @@ int main(int argc, char* argv[])
|
|||||||
CURLcode res;
|
CURLcode res;
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
|
curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
if(res!=0){
|
||||||
|
cout << curl_easy_strerror(res) << endl;
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user