- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在使用 Curb(ruby curl 绑定(bind))进行 FTP 下载时遇到问题。
当扩展被动模式失败时,curb 似乎不会退回到简单被动模式。从日志中提取如下:
< 250 Directory changed to /outgoing/productcatalog/35591
> EPSV
* Connect data stream passively
< 229 Entering Passive Mode (|||40938|)
* Trying 216.34.207.42... * Connecting to 216.34.207.42 (216.34.207.42) port 40938
* Connection failed
* Expire cleared
* Closing connection #0
然后抛出 Curl::Err::ConnectionFailedError: 无法连接到服务器
但是,如果我在命令行中使用 curl,我会得到
< 250 Directory changed to /outgoing/productcatalog/35591
> EPSV
* Connect data stream passively
< 229 Entering Passive Mode (|||43267|)
* Trying 216.34.207.42... Connection refused
* couldn't connect to host
* got positive EPSV response, but can't connect. Disabling EPSV
> PASV
< 227 Entering Passive Mode (216,34,207,42,169,4)
* Trying 216.34.207.42... connected
解决方案是完全禁用 epsv,但 Curb 似乎不可能,没有这样的选项。在这种情况下可以做什么?
最佳答案
禁用 EPSV 的 libcurl 选项是一个简单的 bool 选项,curb 应该已经支持许多其他类似的选项。添加对此的支持应该是相当微不足道的。
关于ruby - 遏制 epsv 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1952511/
我在使用 Curb(ruby curl 绑定(bind))进行 FTP 下载时遇到问题。 当扩展被动模式失败时,curb 似乎不会退回到简单被动模式。从日志中提取如下: EPSV * Connect
我有一台服务器,我将数据推送到这需要我添加 --disable-epsv在 git-ftp 命令的末尾。这当然是个异常(exception),所以我经常忘记。有没有办法在配置文件中设置它,所以它总是为
我们编写了自己的 FTP 服务器,但今天我们遇到了一些问题。 我们的 FTP 客户端正在发送 EPSV,然后发送 LPSV 命令。 据我了解,当您进入扩展模式时,不需要 LPSV 所以问题是 - 这个
我正在尝试通过 Wi-Fi 在本地网络上用 Java 设置 FTP 服务器。我一直在处理 EPSV ALL 命令。作为客户,我在 iPhone 上使用 VLC 播放器。当我尝试播放 .mp4 文件时,
我是一名优秀的程序员,十分优秀!