cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl and perl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 21 Nov 2005 14:09:29 +0100 (CET)

On Sat, 19 Nov 2005, valentin_at_rtfs.org wrote:

> I hope someone already tried this in perl. I want to send a custom command
> using curl_slist_append and CURLOPT_QUOTE but all I try doesnt work. Anyone
> with an idea? My current try looks like this:
>
> my @slist = ();
> @slist = $curl->curl_slist_append(@slist, 'cwd /private/');
> $curl->curl_easy_setopt(CURLOPT_QUOTE, @slist);

IIRC, you should simply do it like this:

   my @slist = ( 'cwd /private/', 'cwd /mooo/mooo/');
   $curl->curl_easy_setopt(CURLOPT_QUOTE, @slist);

(but I haven't tested this)

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