cURL / Mailing Lists / curl-library / Single Mail


Modifying the example source code

From: <>
Date: Sun, 27 Feb 2011 23:37:49 -0500

Hi everyone. I'm still a newb trying to learn C99 and use libcurl.

I have successfully modified this code:

It works perfectly. However, where it says chunk.memory = malloc (1) ,
I decided to be less stingy and give it malloc (10000). Now, I modify
the next line to chunk.size = 10000 ; and suddenly my code produces

Am I misunderstanding the purpose of MemoryStruct.size ?


List admin:
Received on 2011-02-28