curl-users
Re: Problem in curl_multi_perform while storing html content into Mysql database
Date: Mon, 24 Aug 2009 09:37:35 +0200 (CEST)
On Mon, 24 Aug 2009, Hemachandran wrote:
> Thanks for your early reply, when i'm using curl_easy_perform() it works
> perfect and both the below mentioned sites comes seperately, but when i'm
> using curl_multi_perform() both of the sites content merged.
First, please consider using the curl-library list instead as that is for
libcurl hackers. This list is for the curl tool.
> Is there any problem in curl_multi_perform() or i'm not sure whether i'm
> using that function wrongly.
curl_multi_perform() does the transfers in parallel. If you want to separate
the data the transfers deliver, then you need to separate them instead of
letting libcurl just pour them out to stdout (in a mixed fashion).
> do {
> curl_multi_perform(mcurl,&still_running);
> } while(still_running>0);
This will busy-loop like crazy == not good.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-08-24