cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curlopt_writefunction doubt

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 3 Oct 2005 13:34:53 +0200 (CEST)

On Mon, 3 Oct 2005, Pedro Neves wrote:

> I have a doubt related to the CURLOPT_WRITEFUNCTION. I want to get
> information from an http server and then store the result in a file. After
> the result is stored, I have to search a specific string inside the file. My
> doubt is in the use of the curlopt_writefunction. How do I store the
> information I receive in a file?

Don't doubt that function, doubt your callback...

How you store the info to a file? You can do it anyway you like. I usually
open() or fopen() a file and then I write() or fwrite() incoming data to the
file.

BTW, you are better off asking libcurl questions on the curl-library mailing
list...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-10-03