curl-library
Re: PERL Interface to LIBCURL
Date: Thu, 19 Jul 2007 09:48:37 -0700
Munther Khatib wrote:
> 1. I am trying to download a windows copy for WWW-Curl
> to use CURL in PERL scripts. Does anyone know where I
> can find that?
> This link seems to have unix versions of it.
> http://search.cpan.org/~crisb/WWW-Curl-3.02/
I use Cygwin's perl and there is none of this "find a windows version"
nonsense, you install all perl modules from CPAN just like on any *nix
system. Note that the WWW::Curl module's test harness requires setting
CURL_TEST_URL to that of a test server so you will likely want to use
"notest install WWW::Curl" otherwise the tests will fail. But I just
tried it and it built and installed fine.
Now if you're using Activestate perl then you have to fuss about with
these silly win32 specific binary packages, but that's a pretty good
reason to avoid Activestate perl in my book.
> 2. Does anyone know how perl LWP compares to CURL for
> an http client. Does it have limitations or harder to
> use?
Well there's <http://curl.haxx.se/libcurl/competitors.html> but I'd say
it pretty much comes down to personal preference.
> 3. Would calling the curl.exe directly from perl
> scripts create any issues.
Performance will be absolutely horrid if you plan to spawn an entire new
process for each request, especially since process creation is very slow
on windows. But if you are only fetching/posting one URL or your script
doesn't run very frequently then this won't matter.
Brian
Received on 2007-07-19