cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Perl multicurl

From: Balint Szilakszi <szbalint_at_cpan.org>
Date: Fri, 08 May 2009 13:43:50 +0200

Daniel Stenberg wrote:
> On Fri, 8 May 2009, kenny.billiau_at_ugent.be wrote:
>
>> [dave_at_hal ~]$ curl-config --version
>> libcurl 7.15.5
>
> Then allow me to guess that the problem is found in this description:
>
> Strings passed to libcurl as ’char *’ arguments, are copied by the
> library; thus the string storage associated to the pointer argument may
> be overwritten after curl_easy_setopt() returns. Exceptions to this
> rule are described in the option details below.
>
> NOTE: before 7.17.0 strings were not copied. Instead the user was
> forced keep them available until libcurl no longer needed them.
>

WWW::Curl 4.06 should have fixed that problem. I'd be very interested to find out why it doesn't work in this case.

Kenny, could you test with a libcurl version >7.17.0 to confirm that this is indeed the cause?

Regards,
Balint Szilakszi
Received on 2009-05-08