curl - curl命令在代理后面超时
问题描述
我在 HTTP 代理后面运行 Ubuntu Server 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
如果我运行以下命令,它可以正常工作得到 git:
git config --global http://<IP ADDRESS>:802