Загрузка файла по сети

main
laba34 (BuntovaMS) 2 недель назад
Родитель c630bf30ef
Сommit 34195fe82d

@ -42,10 +42,15 @@ int main(int argc, char* argv[]){
using namespace std;
if (argc > 1)
{
cout << "argc = " << argc << endl;
for (int i = 0; i < argc; ++i)
const char *url = argv[1];
CURL *curl = curl_easy_init();
if (curl)
{
cout << "argv[" << i << "] = " << argv[i] << endl;
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_perform(curl);
curl_easy_cleanup(curl);
return 0;
}
return 0;
}

Загрузка…
Отмена
Сохранить