From bca4632c8908b48ecff97af9714f597f12749ff8 Mon Sep 17 00:00:00 2001 From: OvsiannikovRS Date: Mon, 26 May 2025 15:56:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D1=81?= =?UTF-8?q?=20=D1=8D=D0=BA=D0=B7=D0=B0=D0=BC=D0=BF=D0=BB=D0=BE=D0=BC=D1=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LR3/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/LR3/main.cpp b/LR3/main.cpp index f9e871c..228da12 100644 --- a/LR3/main.cpp +++ b/LR3/main.cpp @@ -33,7 +33,13 @@ int main(int argc, char* argv[]) { Input input; if (argc > 1) { - for(int i = 0;i < argc; ++i) cout << argv[i]; + CURL *curl = curl_easy_init(); + if(curl) { + CURLcode res; + curl_easy_setopt(curl, CURLOPT_URL, argv[1]); + res = curl_easy_perform(curl); + curl_easy_cleanup(curl); + } return 0; } curl_global_init(CURL_GLOBAL_ALL);