wget 和 htaccess:仅限用户名
我用谷歌搜索了如何使用 ubuntu 中的终端和 wget 下载图像。我找到了我需要的内容,但在受 .htaccess 保护的服务器上,没有密码。使用
wget admin@http://server.com/filename.jpg
它返回:没有到主机的路由。当我设置密码并输入
wget admin:password@http://server.com/filename.jpg
时,一切都很好。但是我不允许在服务器上使用密码。怎么解决,求路线?
I googled how to download images using terminal in ubuntu with wget. I found what I needed, but on the server, protected with .htaccess, there's no password. with
wget admin@http://server.com/filename.jpg
it returns: No route to hosts. When I set a password and type
wget admin:password@http://server.com/filename.jpg
everything's fine. However I am not allowed to use a password on the server. How to fix it, finding route?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
更容易:
Much easier:
尝试
一下。
或者,
也可以改为工作。
您的语法实际上是错误的,因为它:
您的用户名位于网址之外,并且被视为主机名。
Try
instead.
Alternatively,
may work instead.
Your syntax is actually wrong, as its:
your username is outside the url, and was being treated as a hostname.