gpt4 book ai didi

git - 连接后从代理收到 HTTP 代码 501

转载 作者:太空狗 更新时间:2023-10-29 13:42:44 26 4
gpt4 key购买 nike

每当我尝试从 bitbucket 克隆存储库时,都会出现以下错误:

fatal: unable to access 'https://user_name@bitbucket.org/user_name/repo_name.git/': Received HTTP code 501 from proxy after CONNECT

不明白是什么问题。我正在从 bitbucket 存储库 web 复制 git clone 命令。我还设置了 git http.proxy 但它没有用。

如果需要更多信息,请告诉我。

谢谢

最佳答案

显然,您的代理不支持 HTTP CONNECT tunneling ,这就是它以 HTTP 501(未实现) 代码响应的原因:

HTTP CONNECT tunneling

A variation of HTTP tunneling when behind an HTTP Proxy Server is to use the "CONNECT" HTTP method.

In this mechanism, the client asks an HTTP Proxy server to forward the TCP connecting to the desired destination. The server then proceeds to make the connection on behalf of the client. Once the connection has been established by the server, the Proxy server continues to proxy the TCP stream to and from the client. Note that only the initial connection request is HTTP - after that, the server simply proxies the established TCP connection.

This mechanism is how a client behind an HTTP proxy can access websites using SSL (i.e. HTTPS).

Not all HTTP Proxy Servers support this feature, and even those that do, may limit the behaviour (for example only allowing connections to the default HTTPS port 443, or blocking traffic which doesn't appear to be SSL).

关于git - 连接后从代理收到 HTTP 代码 501,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42106134/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com