git curl 22请求的URL返回错误:407

时间:2018-01-08 15:35:32

标签: git curl proxy kerberos http-status-code-407

我尝试在远程https网站上进行git fetch。我们的公司代理配置为使用kerberos auth。

git版本是2.15.0.windows.1

我配置git使用:

http.proxy=http://proxy.touse.de:80
http.proxyauthmethod=negotiate
http.emptyauth=true

当我进行提取时,我可以看到来自遥控器的信息,但最后我从卷曲中得到了一个407。

结果如下所示:

9787155f57097cd1a92b08474c4
16:24:27.470494 pkt-line.c:80           packet:   fetch-pack> have cdc5aac196f2e
1213253896e06745b7c96f41741
16:24:27.470994 pkt-line.c:80           packet:   fetch-pack> have be06e5bfd35da
b95df36b68c0cf9b566e4d295d0
16:24:27.470994 pkt-line.c:80           packet:   fetch-pack> 0000
16:24:27.470994 pkt-line.c:80           packet:   fetch-pack> 0000
16:24:27.470994 pkt-line.c:80           packet:          git< 0000
* Couldn't find host git.touse.de in the _netrc file; using defaults
* Found bundle for host git.touse.de: 0x479f00 [can pipeline]
* Connection #0 isn't open enough, can't reuse
* Hostname proxy.touse.de was found in DNS cache
*   Trying 10.12.12.12...
* TCP_NODELAY set
* Connected to proxy.touse.de (10.12.12.12) port 80 (#2)
* allocate connect buffer!
* Establish HTTP proxy tunnel to git.touse.de:443
* Server auth using Basic with user 'md@somewhere.de'
> CONNECT git.touse.de:443 HTTP/1.1
Host: git.touse.de:443
User-Agent: git/2.15.0.windows.1
Proxy-Connection: Keep-Alive

< HTTP/1.0 407 Proxy Authentication Required
< Mime-Version: 1.0
< Date: Mon, 08 Jan 2018 15:24:25 GMT
< Content-Type: text/html
< Content-Length: 3219
< X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
< Proxy-Authenticate: Negotiate
< Proxy-Authenticate: Basic realm="Web-Proxy"
< X-Cache: MISS from proxy
< X-Cache-Lookup: NONE from proxy:80
< Connection: close
<
* Ignore 3219 bytes of response-body
* The requested URL returned error: 407
* CONNECT phase completed!
* Connection #2 to host proxy.touse.de left intact
efrror: RPC failed; curl 22 The requested URL returned error: 407
atal: The remote end hung up unexpectedly

有什么想法吗? 我已经尝试使用用户/密码通过设置https_proxy在cmd中设置代理服务器这适用于独立使用的卷曲(这很奇怪,因为它不是使用kerberos)而不是使用git。

0 个答案:

没有答案