cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: obtaining information about files or folders with MLST?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 19 Apr 2012 08:52:03 +0200

On Thu, Apr 19, 2012 at 12:12:10AM +0200, Ellié Computing Open Source Program wrote:
> the MLST command returns its result in the control connection, with
> a success code of 250, this is not handled unfortunately.

The CUSTOMREQUEST option is the way to do it if the custom command sends
something over the data connection. If MLST sends it over the control
connection, then set MLST as the CURLOPT_QUOTE option, set CURLOPT_NOBODY
to skip doing a data transfer, then install a header callback with
CURLOPT_HEADERFUNCTION to grab the listing.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-19