curl和wget不从特定服务器下载文件

发布于 2025-02-06 07:39:43 字数 824 浏览 2 评论 0原文

我面临着以前从未面临过的事情。我到处搜寻而没有成功。以此图像URL:

https://cdn.kimpex.com/Web/600/100/100659.jpg

您可以在浏览器中看到它。从我需要运行导入的生产服务器中,此URL似乎无法触及。我尝试了卷曲和WGET,但我没有得到任何回应。我尝试了另一台服务器,然后下载了。

我不知道在哪里检查。 iptables和防火墙似乎很好。服务器是Linode/Ubuntu 20.04.4。

感谢任何帮助!谢谢!

更新:服务器可以从其他服务器下载。例如,运行WGET https://www.example.com

Resolving www.example.com (www.example.com)... 2606:2800:220:1:248:1893:25c8:1946, 93.184.216.34
Connecting to www.example.com (www.example.com)|2606:2800:220:1:248:1893:25c8:1946|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1256 (1.2K) [text/html]
Saving to: ‘index.html’

index.html 100%[============================>]   1.23K  --.-KB/s    in 0s

2022-06-10 17:33:11 (90.2 MB/s) - ‘index.html’ saved [1256/1256]

I'm facing something I never faced before. I searched everywhere without success. Take this image URL:

https://cdn.kimpex.com/Web/600/100/100659.jpg

You can see it in your browser. From the production server where I need to run an import, this URL seems to be not reachable. I tried curl and wget but I don't get any response. I tried from another server and it gets downloaded.

I have no idea where to check. iptables and firewall seem to be fine. Server is a Linode/Ubuntu 20.04.4.

I'd appreciate any help! Thanks!

UPDATE: The server can download from other server. For example running wget https://www.example.com:

Resolving www.example.com (www.example.com)... 2606:2800:220:1:248:1893:25c8:1946, 93.184.216.34
Connecting to www.example.com (www.example.com)|2606:2800:220:1:248:1893:25c8:1946|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1256 (1.2K) [text/html]
Saving to: ‘index.html’

index.html 100%[============================>]   1.23K  --.-KB/s    in 0s

2022-06-10 17:33:11 (90.2 MB/s) - ‘index.html’ saved [1256/1256]

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

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

发布评论

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