http c++ library?

て烟熏妆下的殇ゞ 提交于 2019-12-05 14:00:28

Maybe libCURL?

virious

I'm also using libCURL in my projects. It has bindings with many programming languages. (libcurl Bindings)
But using it without them is also very easy. Simplest example:

#include <stdio.h>
#include <curl/curl.h>

int main(void)
{
  CURL *curl;
  CURLcode res;

  curl = curl_easy_init();
  if(curl) {
    curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se");
    res = curl_easy_perform(curl);

    /* always cleanup */ 
    curl_easy_cleanup(curl);
  }
  return 0;
}

This example and many more can be found here.

cpp-netlib. It is pure C++ and it is linked to the boost community, although not yet part of boost.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!