From 010f5e900cb725a66e2f33a765ae69af092ea115 Mon Sep 17 00:00:00 2001 From: ChirkaAR Date: Sun, 25 May 2025 02:06:12 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=9E=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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/main.cpp b/main.cpp index 9e9b7cf..c72a2a4 100644 --- a/main.cpp +++ b/main.cpp @@ -44,6 +44,20 @@ input_data(istream& in, bool prompt) int main(int argc, char* argv[]) { curl_global_init(CURL_GLOBAL_ALL); + CURL *curl = curl_easy_init(); + if(curl) { + CURLcode res; + curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); + res = curl_easy_perform(curl); + curl_easy_cleanup(curl); + + if (res != 0){ + cerr << curl_easy_strerror(res); + exit(1); + } + curl_easy_cleanup(curl); + + } if (argc > 1) { for (int i = 0; i < argc; i++) {