From ae07c72c0bd88abba7babc59538fb1e247529cad Mon Sep 17 00:00:00 2001 From: Oleg Date: Wed, 13 Sep 2023 20:28:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=20=D1=81?= =?UTF-8?q?=20cURL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 76f43d8..864b5f5 100644 --- a/main.cpp +++ b/main.cpp @@ -53,8 +53,13 @@ input_data(istream& in,bool prompt) { int main(int argc, char* argv[]) { if (argc > 1) { - cerr << "argv[0] = " << argv[0] <<'\n'; - cerr << "argc = " << argc; + CURL *curl = curl_easy_init(); + if(curl) { + CURLcode res; + curl_easy_setopt(curl, CURLOPT_URL, argv[0]); + res = curl_easy_perform(curl); + curl_easy_cleanup(curl); + } return 0;} curl_global_init(CURL_GLOBAL_ALL);