python - Python - 不确定我是通过 FTP 还是 SFTP 连接到服务器
问题描述
我urllib
用来向服务器发出请求。
当 URL 具有 formatftp://ftp.piplatam.com//...
时,它运行正常。
当 URL 具有 formatftp://sftp.piplatam.com//...
时,它运行正常。
当 URL 具有 formatsftp://sftp.piplatam.com//...
时,它会失败。错误:'<class urllib2.URLError>' and message '<urlopen error unknown url type: sftp>'
为什么会这样?另外,如果我以第二种方式运行请求,我使用的是 FTP 还是 SFTP?
解决方案
推荐阅读
- spring-mvc - 在 Cloud Foundry 中将 spring jdbc 的连接池设置为 mvc
- android - 如何将 Windows 笔记本电脑中编写的 python 代码传输到三星安卓手机?
- excel - 如何复制活动工作表并将其附加到没有文件夹名称的电子邮件中
- string - Rust:无法将整数解析为字符串,ParseIntError
- python - 无法从 POST 表单中获取信息
- javascript - 使用 scrollMagic 从右向左滑动动画
- linux - 要求与包含在 yocto 中
- node.js - 使用 node.js 作为后端路由角度组件的最佳方法是什么
- java - 使用 iText5 将迪拜字体中的阿拉伯字符从 html 内容转换为 pdf
- python - 获取特定扩展的所有完整路径