curl-and-python
Re: Connection Problems with FTPS
Date: Wed, 11 May 2005 15:56:43 +0200 (CEST)
On Wed, 11 May 2005, Jonathan Hutcherson wrote:
> I am trying to write a simple python program that will allow me to upload a
> file via FTPS to a FTP server. I keep getting, however, this error:
>
> error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
>
> The thing is, we get the same error when using the cURL tool. Any ideas as
> to what might be happening with this?
And you are supposed to be able to use implicitly on port 990 like this? Try
enforcing SSLv2 or SSLv3 and see if helps!
> last = ['RNFR (nil)','RNTO testfile.txt']
This looks wrong. Or do you have a particular file named (nil) you want to
rename?
> auth = ['AUTH SSL']
This is very wrong. You're using implicit FTPS so it is already "AUTH SSL",
and if you'd use a ftp:// URL the FTPSSLAUTH option enables the auth and
associated FTP commands. Sending this as an additional custom command will
only confuse matters.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/mailman/listinfo/curl-and-pythonReceived on 2005-05-11