curl-users
Perl interface version 1.1.1
Date: Thu, 12 Apr 2001 15:58:37 +0200
Hi,
i just released a new version of the perl interface for libcurl:
http://koblenz-net.de/~horn/export/Curl-1.1.1.tgz
It now also supports options for curl_easy_setopt() that require
a list of curl_slist structs to be passed in, like CURLOPT_HTTPHEADER.
Instead of a list you have to pass a reference to a perl array to
Curl::easy::curl_easy_setopt()
Also included is a new function internal_setopt(), that allows you
to modify the behaviour of the perl interface itself. At the moment,
it supports only one single option:
Curl::easy::internal_setopt(Curl::easy::USE_INTERNAL_VARS, 1);
This makes the perl interface use an internal write callback to store
the contents retrieved from a server into an internal buffer. After
the transfer is finished, headers and content are stored into perl variables
$Curl::easy::headers and $Curl::easy::content
As always, look into the included test script, "test.pl", (or into the
sources...) to see how it works. I'm sorry but i have not the time to
write long documentations.
Bye,
Georg
Received on 2001-04-12