如何对 php 或 cgi 等脚本后面链接的目标使用 wget?

发布于 2024-11-13 07:06:25 字数 159 浏览 7 评论 0原文

很多时候,我需要从远程非 GUI 登录中使用 wget,但我发现网页上显示的链接并不直接指向该文件,而是指向下载的脚本。这意味着无法使用 wget 来获取文件。相反,我必须先进行浏览器下载,然后通过 scp 进行远程登录。

有没有办法,我可以使用 wget 以某种方式真正定位目标文件!?

Often times, I need to use wget from a remote non-gui login but I see that the links presented on webpages do not directly point to the file but rather a script that leads to the download. This means it is impossible to use wget to fetch the file. Instead, I have to do a browser download followed by scp to the remote login.

Is there a way, I can use wget to really target the intended file somehow!?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文