Re: raise chunks of memory in callback

2011-03-22 Thread Oscar Salvador
#x27;s only for more knowledge. Thanks for answer 2011/3/22 Ben Noordhuis : > On Tue, Mar 22, 2011 at 10:06, Oscar Salvador wrote: >> My question is that i'm retrieving an image from internet, and i write >> this image into a memory chunk with WRITEFUNCTION  and WRITEDATA. The >>

raise chunks of memory in callback

2011-03-22 Thread Oscar Salvador
Hi, how are you. My question is that i'm retrieving an image from internet, and i write this image into a memory chunk with WRITEFUNCTION and WRITEDATA. The problem is that libcurl retrieves the image a little slow, because it calls many times the callback function to write the chunk of image int

Re: Output to terminal using libcurl

2011-03-17 Thread Oscar Salvador
2011/3/17 Lars Nilsson : > On Thu, Mar 17, 2011 at 9:14 AM, Ben Noordhuis wrote: >> On Thu, Mar 17, 2011 at 13:51, Oscar Salvador wrote: >>> Hi, how are you. >>> I have a doubt with libcurl. I'm retrieving an image from url, for >>> example: http://www.j

Output to terminal using libcurl

2011-03-17 Thread Oscar Salvador
Hi, how are you. I have a doubt with libcurl. I'm retrieving an image from url, for example: http://www.jejeje.com/pepe/52.jpg, and i save this in a memory buffer. This works correctly. Before retrieve the image, I check if image exists or no with: [[ curl_easy_getinfo(curl_handle, CURLINFO_RESPO