Hi!
I have used libcurl in UDFs without these issues. That said...I can't
recall this CurlResult thingie...probably my ignorance with regard to
libcurl.
What I do is set a data handler to store the result.
curl_easy_setopt(
udf_curl_http->curl
, CURLOPT_WRITEFUNCTION
, _udf_curl_write_data
);
so _udf_curl_write_data is called whenever there is data that libcurl
has fetched and wants to offload it to the app (in this case url).
_udf_curl_write_data is a function you write yourself. That gets a
handle passed that you can use to store the data, and I define that
myself too:
curl_easy_setopt(
udf_curl_http->curl
, CURLOPT_WRITEDATA
, &(udf_curl_http->data)
);
So each time the write data function is called, it will get a pointer
tp udf_curl_http->data passed.
For more details, take a look at my code in lib_mysqludf_curl.tar.gz
in the files section. You can compile it using the makefile in the
Debug directory, and you will most likely need to adjust the paths to
the MySQL include directory and to the location of the libcurl shared
library to match your system