http - wget - download file from ftp server (with auth) via http proxy (with auth)
问题描述
I want to use wget to download a whole folder from ftp (i know about -r), curl does not allow downloading folder in one request. I have the following syntax for curl working but can't work out the syntax for even downloading a single file via wget. The key things here are that ftp has auth and getting to ftp is via http proxy (with diff credentials).
This is the working curl command: curl --proxy-anyauth --proxy-user NTADMIN\proxyuser:proxypass --proxy http://httpproxyhost:8080 --anyauth -u ftpuser:ftppass -v 'ftp://ftphost/file'
What is the equivalent in wget?
解决方案
您可以尝试使用规范的 URI 格式:
curl --proxy http://proxyuser:proxypass@httpproxyhost:8080 -v 'ftp://ftpuser:ftppass@ftphost/file'
使用 wget 您可以使用如下命令:
ftp_proxy=http://proxyuser:proxypass@httpproxyhost:8080 wget ftp://ftpuser:ftppass@ftphost/file
推荐阅读
- javascript - 如何使用nodejs中的提交按钮传递值?而不是使用表单 action='/pass'
- parameter-passing - 通过 Azure Pipeline 模板在两个作业之间使用参数
- python - 使用 Numpy 进行基本算术运算时如何保持尺寸
- tcp - VPC 流日志中的 TCP 控制位 0 是什么意思?
- keras - keras.layers.concatenate 有什么作用
- fortran - OpenMP 未在 gFortran (MinGW) 上编译
- php - 渲染未在 php 中定义
- python-3.x - P4python 需要检查特定更改列表中更改了哪些文件
- node.js - 如何发出将文件和数据都发送到 url 的节点 HTTP 请求?
- javascript - javascript onevent 元素,返回被点击元素的 id