Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there examples of WWW::Curl::Multi?

Tags:

curl

perl

Does somebody have a working example of using WWW::Curl::Multi?

like image 965
user218189 Avatar asked Dec 29 '22 10:12

user218189


2 Answers

Did you try looking on the curl homepage? The CPAN documentation says

This module provides a Perl interface to libcurl. It is not intended to be a standalone module and because of this, the main libcurl documentation should be consulted for API details at http://curl.haxx.se. The documentation you're reading right now only contains the Perl specific details, some sample code and the differences between the C API and the Perl one.

However, there is an example of both WWW::Curl::Easy and WWW::Curl::Multi on the main CPAN page: http://search.cpan.org/perldoc?WWW::Curl#WWW::Curl::Multi

like image 187
Ether Avatar answered Jan 07 '23 13:01

Ether


To give you insight into the community: I've never seen WWW::Curl::Multi in use. The overwhelming majority satisfy their parallel http needs with either POE::Component::Client::HTTP (for ftp and others there are other clients), or Parallel::ForkManager and LWP. Not to say that curl isn't great and that the added multi-network functionality isn't nice, just to say in practice the other two implementations are much more common.

I want to acknowledge that curl multi works great for the php community, and I know nothing bad per se about the perl bindings.

like image 31
NO WAR WITH RUSSIA Avatar answered Jan 07 '23 12:01

NO WAR WITH RUSSIA