Curl命令在代理后超时

Curl命令在代理后超时,curl,proxy,Curl,Proxy,我在HTTP代理后运行Ubuntu服务器20.0.4,无法运行Curl curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh curl: (28) Failed to connect to get-ghcup.haskell.org port 443: Connection timed out 我尝试设置代理环境变量命令,但没有成功 proxy_http=http://<IP ADDRESS>

我在HTTP代理后运行Ubuntu服务器20.0.4,无法运行Curl

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
curl: (28) Failed to connect to get-ghcup.haskell.org port 443: Connection timed out
我尝试设置代理环境变量命令,但没有成功

proxy_http=http://<IP ADDRESS>:802
proxy\u http=http://:802
如果我运行下面的命令,它可以正常工作,git:

git config --global http://<IP ADDRESS>:802
git-config——全局http://:802

git config命令与您的问题有什么关系?此外,环境变量不是proxy_http,而是http_proxy和/或https_proxy。