cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: downloading parallel pages (multi threads)

From: Brian Wilkins <brian_at_hcc.net>
Date: Tue, 23 Nov 2004 09:30:58 +0000

I'm not quite sure what language you are using, but you could use Pthreads and
fork() to have a Multi-threaded, Multi-process application using curl. If you
are using perl, you can use perl-fork :

http://www.xav.com/perl/lib/Pod/perlfork.html

On Tuesday 23 November 2004 02:17 pm, Daniel Stenberg wrote:
> On Tue, 23 Nov 2004, imran khalid wrote:
> > I want to download parallel pages from two web sites. i have seen some
> > functions for multi thread interface
>
> The curl multi interface is _not_ multi thread. It transfers multiple files
> in a single thread.
>
> > Can u please let me know how can i use these functions to download two
> > web pages Simultaneously from two different urls.
>
> I can't. Perhaps someone else can?

-- 
Brian Wilkins
Software Engineer
brian_at_hcc.net
Heritage Communications Corporation
  Melbourne, FL     USA     32935
321.308.4000 x33
http://www.hcc.net
Received on 2004-11-23