From 9e5a40833ff3328e1b31dbf19c649c8d783a5001 Mon Sep 17 00:00:00 2001 From: "Andrew (ShabatovAA)" Date: Sun, 19 May 2024 21:22:44 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 646953e..ba3a8f9 100644 --- a/main.cpp +++ b/main.cpp @@ -52,8 +52,12 @@ int main(int argc, char* argv[]) CURL* curl = curl_easy_init(); if(curl) { CURLcode res; - curl_easy_setopt(curl, CURLOPT_URL, "http://uit.mpei.ru/study/courses/cs/lab03/marks.txt"); + curl_easy_setopt(curl, CURLOPT_URL, "//uit.mpei.ru/study/courses/cs/lab03/marks.txt"); res = curl_easy_perform(curl); + if (res != '0'){ + cout << curl_easy_strerror(res); + exit(1); + } curl_easy_cleanup(curl); } return 0;