cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Getting Started

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Fri, 6 Jul 2007 20:14:26 +0200

Hi,

> When i tried sftp:// it said that protocol was unsupported though, and
when i tried ftps it just kind of hung.

curl handles ftps like ftp on port 990 with immediate SSL handshake
after connect.
Most ftp servers doing SSL need a particular command/response exchange
before SSL handshake. Thus hanging the ftps:// client for the handshake
timeout (default is 5 min.).
 
Try setting option:
    curl_easy_setopt(curl, CURLOPT_FTP_SSL, CURLFTPSSL_TRY);
in the program (or CURLFTPSSL_CONTROL or CURLFTPSSL_ALL), and use a
normal ftp:// URL (specifying port 990 if server listens to it!).
 
...should work (I hope!).
Patrick
Received on 2007-07-06