【问题标题】:curl and wget not downloading files from a specific servercurl 和 wget 不从特定服务器下载文件
【发布时间】:2022-06-11 01:39:59
【问题描述】:

我正面临着我从未遇到过的事情。我到处搜索都没有成功。获取此图片网址:

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

您可以在浏览器中看到它。在我需要运行导入的生产服务器上,似乎无法访问此 URL。我试过 curl 和 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]

【问题讨论】:

  • 您可以让wget 从该服务器下载任何内容吗?请尝试wget https://www.example.com,然后写下发生了什么
  • 是的@Daweo 我完全可以下载:--2022-06-10 17:33:11-- 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]

标签: curl server wget ubuntu-20.04


猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-06-13
  • 2015-02-20
  • 1970-01-01
  • 2017-04-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多