cURL / Mailing Lists / curl-users / Single Mail

curl-users

getting html to buffer?

From: Admir Efendic <admir_at_softwell.se>
Date: Mon, 01 Oct 2001 09:47:48 +0200

Hi!
I'm trying to get an html-file to char* buffer with curl. I am using
multiple threads, each thread have their own instance of curl and are
fetching different html pages. Is there a straightforward way to do
this, or do I have to write html to a file, and then open the file (or
mmap it)? Specifying custom write function to curl doesn't really help,
because I am forced to use global buffer (visible to both
thread_function & write_function ) and that's a nono with threads ;-).

/Admir Efendic, Stockholm, Sweden
Received on 2001-10-01