cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTPS anyone?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 4 Dec 2003 16:10:55 +0100 (CET)

On Wed, 3 Dec 2003, Gisle Vanem wrote:

> > From the ethereal trace, I assume that is user-data and not SSL
> > handshake

> (it's already been done AFAICS). But I've been unable to test this further.
> His ftp/ftps server has been down all day.

If curl thinks the data connection should be made with SSL, then there should
be a SSL handshake performed right after RETR has been issused and the server
has responded with 150. Your snippet didn't show any such debug output, thus
it looked as if curl assumed the data connection to be plain.

curl thinks the data connection uses SSL if one of two conditions are true:

1. you connect to the site using ftps://

2. the 'PROT P' command curl uses when you use --ftp-ssl is successful (the
   servers sends a 200 response)

Of course there might be a bug somewhere that made things act differently.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-04