【问题标题】:Curl file download using ftp protocol fail with RETR response 550使用 ftp 协议下载卷曲文件失败,RETR 响应 550
【发布时间】:2017-03-29 04:24:35
【问题描述】:

我正在尝试将文件从服务器下载到客户端上的特定路径,当我运行以下 curl 命令时出现错误:

  curl -u test:test "ftp://<serverip>/home/test/README.txt" -o ~/home/dccom/testserver/db/log/README.txt
 The curl command error is as follows : 
 % Total  % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
 0    0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 curl: (78) RETR response: 550

如果有合适的下载格式,请提出建议

【问题讨论】:

    标签: curl ftp


    【解决方案1】:

    当 ftp 服务器上的文件权限受到限制时,我发生了这种情况。

    使用 Windows IIS FTP,我必须在安全属性选项卡中添加“IUSR”。

    在 linux 上,如果“test”用户有权访问文件或 ftp 服务器有权访问文件,则可能需要锻炼。祝你好运

    【讨论】:

      【解决方案2】:
       -The path format changing will work : 
      
      curl -u test:test 'ftp://10.226.45.7/%2fhome/test/README.txt' -o /home/dccom/testserver/db/log/README.txt
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2012-08-07
        • 1970-01-01
        • 2014-03-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多