curl-library
Re: Read a website into a buffer, read the buffer?
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 27 Jan 2004 15:04:25 +0100 (CET)
Date: Tue, 27 Jan 2004 15:04:25 +0100 (CET)
On Sun, 25 Jan 2004, Ewin Barnett wrote:
> I have an application where I have to parse the HTML returned by a web site,
> but I don't want to write it to disk, but instead pass the buffer directly
> to my parser.
>
> Can anyone suggest some sample C code, or point me to some public source
> that is not too obscure in how it gets the data?
You mean something like this?
http://curl.haxx.se/lxr/source/docs/examples/getinmemory.c
-- Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/ [[ Do not send mails to this email address. They won't reach me. ]] ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdnReceived on 2004-01-27