From 8136efc675c0c6bf8a439e8ce07cddeb929dec30 Mon Sep 17 00:00:00 2001 From: KhodiukMR Date: Sun, 26 May 2024 12:30:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=86=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=BD=D0=B0=20curl=5Feasy=5Finit()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CommonVar.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CommonVar.cpp b/CommonVar.cpp index f7bf6c3..8d16c82 100644 --- a/CommonVar.cpp +++ b/CommonVar.cpp @@ -41,9 +41,11 @@ void ShowHistogrammText(vector Bins); int main(int argc, char* argv[]) { curl_global_init(CURL_GLOBAL_ALL); if (argc > 1) { - for (size_t i = 0; i < argc; i++) { - cout << "arcv[" << i << "] = " << argv[i] << endl; - } + CURL* curl = curl_easy_init(); + CURLcode res; + curl_easy_setopt(curl, CURLOPT_URL, argv[1]); + res = curl_easy_perform(curl); + curl_easy_cleanup(curl); return 0; } double MaxCount = 0; @@ -52,4 +54,5 @@ int main(int argc, char* argv[]) { Bins = MakeHistogram(in.Numbers, in.BinCount, MaxCount); ShowHistogramSvg(Bins); return 0; + }