Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错:已发出 HTTP 请求,正在等待回应... 403 Forbidden. #1434

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Danny5487401
Copy link

@Danny5487401 Danny5487401 commented Dec 23, 2024

@gjmzj
wget 时会缺少请求头,curl 默认会附带一些浏览器请求头,如User-Agent: curl/7.29.0.

Which issue(s) this PR fixes:

[root@xx31122-test1-c7 ~]# wget https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/static/stable/x86_64/docker-27.3.1.tgz
--2024-12-23 19:00:27--  https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/static/stable/x86_64/docker-27.3.1.tgz
正在解析主机 mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130, 2402:f000:1:400::2
正在连接 mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 403 Forbidden
2024-12-23 19:00:27 错误 403:Forbidden。

Fixes #

针对wget增加请求头.

或则不要求下载wget 二进制, 下载 ezdown 命令修改

curl -L -o ezdown https://github.com/easzlab/kubeasz/releases/download/${release}/ezdown

已发出 HTTP 请求,正在等待回应... 403 Forbidden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant