cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Multiple URL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 8 Dec 2005 08:17:44 +0100 (CET)

On Wed, 7 Dec 2005, John MIddleton wrote:

> I have some code below where I am fetching a recordset from a MySQL database
> and looping through the recordset and fetching the contents of each into
> chunk.memory.

Consider using the curl-library list for libcurl issues, you'll reach a larger
audience of libcurl users there.

> The problem is the feeds are being concatenated in chunk.memory. What is the
> correct way to free or reset chunk.memory so this won't happen?

> I am assuming I should be able to reuse the curl_handle.

When curl_easy_perform() returns, that single transfer is complete and if you
want the memory to be "flushed" or similar between transfers that is the
responsibility of your code.

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