Put a file on an ftp server over ssl

Jp Calderone exarkun at divmod.com
Tue May 10 13:36:24 EDT 2005


On 10 May 2005 09:55:32 -0700, Daniel Santa Cruz <dstcruz at gmail.com> wrote:
>Hello all!
>
>I have been troubled for the past couple of days trying to write a
>simple script that sends a file to an ftp server.  It used to be the
>easiest thing in the world, but now the server has changed to a ftps
>(ftp over ssl) server.  All of the sudden, the world has come to a
>crawling stop.
>
>Seems that M2Crypto would maybe do the trick, but I can't buy the thing
>(they won't pay for it).  Other than suggesting projects, does any one
>have actuall working code to do something like this?  My, it seems like
>it should be VERY simple, but it has become a nightmare.
>
>Oh do I wish...
>
>f = ftps.connect('username', 'password', port)
>ftps.put(localFilePath)
>
>Done!
>
>Thanks for any help!

  Twisted (<http://www.twistedmatrix.com>) has some rudamentary FTP support.  It also has SSL support.  It will probably take a little effort on your part to get them to work together, but I'm sure it will be easier than coming up with your own FTP implementation or kludging the standard library's ftp support into working.

  Jp

>
>Daniel
>
>--
>http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list