Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

FTPS Upload A File From Ruby Using Curl Command Line

DZone's Guide to

FTPS Upload A File From Ruby Using Curl Command Line

·
Free Resource
Yes, this is lame, but I didn't have much luck with Ruby libraries, so this is what I came up with.


`curl -k --ftp-ssl -3 -T#{path} -u#{FTP_USER}:#{FTP_PASS} #{FTP_HOST}`


-k forces the connection even if the cert looks bad
-3 turns on SSLv3
-T file to upload
-u user:password
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}