ColdFusion FTP显式TLS

编程入门 行业动态 更新时间:2024-10-11 05:30:15
本文介绍了ColdFusion FTP显式TLS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以使用显式TLS执行ColdFusion FTP连接?

Is it possible to do a ColdFusion FTP connection using Explicit TLS?

我在Google上搜索但无效。

I have searched on Google but to no avail.

推荐答案

Apache Commons有一个 FTPSClient 类,我认为它已经在Coldfusion的更高版本中提供。

The Apache Commons has an FTPSClient class as well, and I think it is already available in the later versions of Coldfusion.

只是添加一个例子。它使用我发现可用的测试服务器。我使用的是CF 9.0.2,不需要下载任何额外的jar。

Just adding an example. It uses a test server that I found available. I am using CF 9.0.2, and did not have to download any additional jars.

ftpsClient = CreateObject("java","org.apachemons.ftp.FTPSClient").init(JavaCast("boolean",true)); ftpsClient.connect(JavaCast("string","ftp.secureftp-test"),990); connected = ftpsClient.isConnected(); WriteOutput("Is Connected:" & connected & '<br/>'); login = ftpsClient.login('test','test'); WriteOutput("Is Logged in:" & login & '<br/>'); ftpsClient.logout(); ftpsClient.disconnect(); connected = ftpsClient.isConnected(); WriteOutput("Is Connected:" & connected & '<br/>');

更多推荐

ColdFusion FTP显式TLS

本文发布于:2023-11-05 03:08:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1559740.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:FTP   ColdFusion   TLS   显式

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!