HTTP Client library for C++

前端 未结 4 613
我在风中等你
我在风中等你 2021-01-03 05:42

I\'m trying to write milt-threaded HTTP proxy for learning C++/socket/HTTP

I\'m looking for a HTTP client library like HttpURLConnection available in Java.

4条回答
  •  一生所求
    2021-01-03 06:24

    libcurl docs have an example page on how to get incremental download callbacks (into a memory buffer) as data streams in from a request:

    http://curl.haxx.se/libcurl/c/getinmemory.html

    In your case, you would just forward the data buffer on to the client that originally made the request.

提交回复
热议问题