KhatyukhinYS 12 месяцев назад
Родитель 09026386d3
Сommit 240e4a99aa

@ -51,10 +51,16 @@ int main(int argc, char* argv[])
{ {
if(argc>1) if(argc>1)
{ {
cout<<argc<<endl; CURL* curl = curl_easy_init();
for(size_t i=0;i<argc;i++) if(curl) {
{ CURLcode res;
cout<<argv[i]<<" "; curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
if (res!=0){
cout<<res;
exit(1);
}
} }
return 0; return 0;
} }

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