cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl as a proxy

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 12 Jan 2006 22:50:19 +0100 (CET)

On Thu, 12 Jan 2006, Manuel Arguelles wrote:

> What I'm doing is to open a listening socket, then when there's a request
> accept it (new socket), fork, parse the request to get the url, pass it to
> libcurl get the result, send it to the socket, close the socket.
>
> is there any especial options that I should consider?? does the
> CURLOPT_WRITEDATA callback have the raw data?

That can certainly be done, as has even been done in the past.

I don't know what you mean with 'raw' data, but I would advice that you start
off your venture by reading the tutorial:

         http://curl.haxx.se/libcurl/c/libcurl-tutorial.html

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-01-12