diff --git a/sem2_lab1/sem2_lab1.cpp b/sem2_lab1/sem2_lab1.cpp index 37ed956..4ba33d2 100644 --- a/sem2_lab1/sem2_lab1.cpp +++ b/sem2_lab1/sem2_lab1.cpp @@ -30,7 +30,14 @@ Input input_data(istream& in,bool prompt) int main(int argc, char* argv[]) { if (argc > 1) { - for (int i = 0; i < argc; i++) cout << "argv[" << i << "] = " << argv[i] << endl; + 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); + cout << res <