cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Dowloading html code from a page

From: Dirk Manske <dm_at_nonitor.de>
Date: Thu, 24 Feb 2011 13:41:20 +0100

On Thursday 24 February 2011 13:13:14 Krosh Ivanov wrote:
> I'm using libcurl to download the html code from pages and I wrote an
> example code (http://paste.ideaslabs.com/show/NB1GiG6IGx) for that, but I
> got a problem. When I put the app to access a page and then to download the
> code, the begin of the code only is downloaded. What looks wrong in the
> code?
Look at your write function and read the document or examples with
a write callback... Hint: you need to return the number of "written" bytes.

I'm wondering that your compiler does not complain about the missing
return statement.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-24