curl-users
LibCurlNet: SSL23_GET_SERVER_HELLO error with secure ftp site
Date: Tue, 6 Dec 2005 17:13:15 -0800
I am using the .Net wrapper for Curl to try and transfer a file to a secure
ftp site.
I have verified that I can transfer a file using my login by using KBear
(linux) to upload file selecting its ftps option.
I am using the sample code called Upload.cs , but I added these options (I
tried
most of the other enum values for these options with the same results)
easy.SetOpt(CURLoption.CURLOPT_FTP_SSL,
CURLftpSSL.CURLFTPSSL_CONTROL);
easy.SetOpt(CURLoption.CURLOPT_FTPSSLAUTH, CURLftpAuth.CURLFTPAUTH_DEFAULT);
I've attached the c# code to this post.
Here is the debug output when I try to connect and upload using LibCurlNet:
About to connect() to secftp.targetbase.com port 21
Trying 12.154.34.199...
connected
Connected to secftp.targetbase.com (12.154.34.199) port 21
220 MOVEit DMZ FTP
AUTH SSL
234 SSL enabled start the negotiation
SSLv2, Client hello (1):
_'3_rror:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Closing connection #0
The program '[2516] curftpsamples.exe' has exited with code 0 (0x0).
_____
<< ella for Spam Control >> has removed 7086 Spam messages and set aside 898
Newsletters for me
You can use it too - and it's FREE! www.ellaforspam.com
<http://www.ellaforspam.com>
- application/octet-stream attachment: Upload.cs