in reply to libcurl and WWW::Curl speed benchmark

There are two working examples in the documentation - what exactly do you need in addition?

  • Comment on Re: libcurl and WWW::Curl speed benchmark

Replies are listed 'Best First'.
Re^2: libcurl and WWW::Curl speed benchmark
by MiklerGM (Novice) on Apr 04, 2011 at 12:50 UTC
    i search for this http://curl.haxx.se/mail/lib-2002-04/0223.html
    on CPAN pure documentation, working examples but there are no fully help about all params
    hmmm, now i have a problem like this
    Undefined subroutine &Curl::easy::getinfo called at p.pl line 62
    Line 62: $start = $curl->$getinfo(CURLINFO_STARTTRANSFER_TIME);

    but $bytes = $curl->getinfo(CURLINFO_SIZE_DOWNLOAD); works fine

      This article is from 2002, a lot can change in 9 years. The module was renamed from Curl::easy to WWW::Curl::easy in 2003, prior to it being uploaded to CPAN. Then another change to WWW::Curl::Easy in 2005, WWW::Curl::easy was removed in 2008. As has already been pointed out, WWW::Curl states:

      "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."

      It may be worth actually reading and understanding a modules documentation before writing it off as "awful".

      don't look at outdated info, see this