cURL / Mailing Lists / curl-library / Single Mail

curl-library

Getting a URL to memory

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 3 Sep 2001 08:46:05 +0200 (MET DST)

On Sun, 2 Sep 2001, orion orion wrote:

> I would like to download some files without writting them on the hard
> disk. I would like to store the WEB page in a pointer or an array in
> order to process the WEB page in the main memory. I want to avoid I/O.
>
> Apparently, if it's possible, it's in the curl_easy_setop function, but I
> don't know how to do it ?

Check out the docs/examples/getinmemory.c example, or read the FAQ item 5.2.

The idea is to use CURLOPT_WRITEFUNCTION and CURLOPT_FILE.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-09-03