cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with FTP SSL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 26 Oct 2005 11:06:07 +0200 (CEST)

On Wed, 26 Oct 2005, ?????? ????? wrote:

> *About to connect() to 192.168.11.32 port 990
> *Trying 192.168.11.32... * connected
> *Connected to 192.168.11.32 (192.168.11.32) port 990
> < 431 Unable to negotiate secure command connection.

So this is the first thing the server responds with?

It makes it sound like it wants a "secure command connection". Then you
shouldn't use ftp:// but instead use FTPS://...

> I use LIBCURL_VERSION "7.13.1" for WinXP SP2

>> curl_easy_setopt(curl, CURLOPT_URL, "ftp://192.168.11.32:990/test.pl" );
>
>> FTP to port 990. Is this _really_ what you want?
> yes.

Nope. FTP means insecure, unencrypred, plain text connection. It can of course
optionally switch over to a secure connection but it always starts plain text.

Your server response hints that it expects an SSL connection from the start,
so you should use a FTPS:// url (which defaults to port 990).

Good luck!

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