cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problem if the supported data for CURLOPT_URL goes out of scope (perl bindings)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 22 Nov 2006 15:28:03 +0100 (CET)

On Tue, 21 Nov 2006, Erik Wasser wrote:

> Hello list curl-users_at_cool.haxx.se,

Sice you're a libcurl hacking person, consider the libcurl mailing list!

> It seems that the perl binding got a problem if the supported URL for the
> option CURLOPT_URL gets out of scope.

The libcurl user (application or binding) must make sure that strings passed
to the lib are kept "in scope" during the handle's life time. I guess it means
that you need to create some kind of perl object that holds the URL.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-11-22