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

@ -51,11 +51,17 @@ int main(int argc, char* argv[])
{
if(argc>1)
{
cout<<argc<<endl;
for(size_t i=0;i<argc;i++)
{
cout<<argv[i]<<" ";
}
CURL* curl = curl_easy_init();
if(curl) {
CURLcode res;
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;
}
curl_global_init(CURL_GLOBAL_ALL);

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