cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftp examples

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 10 Sep 2005 22:27:22 +0200 (CEST)

On Sat, 10 Sep 2005, Xharbour suporte wrote:

> Dear friends

Please don't use reply as a shortcut to start new threads.

> I look on the examples, but could not find what I need With standart sock
> programming , with the same handle , i can send multiples command like
> LIST/MKD/Stor/RETR with same connection.
>
> How to do the same with libcurl?

With libcurl you don't send commands, you transfer data. libcurl will take
care of the command sending by itself.

See the ftpget.c example.

> Also. how to get the last library errono and error description?

Check return code, use CURLOPT_ERRORBUFFER and curl_easy_strerror.

Did you try really try reading the docs and manuals?

> Also, how to upload/download multiples files with same curl handle?

Use the same handle again.

I think you should start your libcurl ventures by reading this:

         http://curl.haxx.se/libcurl/c/libcurl-tutorial.html

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