开发者

http c++ library?

Hi I am wondreing if there is some kind of C++ library that deals with HTTP, HTTPs, chunking etc. Googl开发者_运维百科e did not find anything.


Maybe libCURL?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜