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.
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.