path: root/remote.h
diff options
authorKnut Franke <>2016-01-26 13:02:47 (GMT)
committerJunio C Hamano <>2016-01-26 18:53:09 (GMT)
commitef976395e26a25fb6d048d859a1c8cddb2640b9a (patch)
tree7630031feb3f75f6657d5a320d62b1692f53aa22 /remote.h
parent754884255bb580df159e58defa81cdd30b5c430c (diff)
http: allow selection of proxy authentication method
CURLAUTH_ANY does not work with proxies which answer unauthenticated requests with a 307 redirect to an error page instead of a 407 listing supported authentication methods. Therefore, allow the authentication method to be set using the environment variable GIT_HTTP_PROXY_AUTHMETHOD or configuration variables http.proxyAuthmethod and remote.<name>.proxyAuthmethod (in analogy to http.proxy and remote.<name>.proxy). The following values are supported: * anyauth (default) * basic * digest * negotiate * ntlm Signed-off-by: Knut Franke <> Signed-off-by: Elia Pinto <> Helped-by: Junio C Hamano <> Helped-by: Eric Sunshine <> Helped-by: Elia Pinto <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'remote.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index 4a039ba..4fd7a0f 100644
--- a/remote.h
+++ b/remote.h
@@ -54,6 +54,7 @@ struct remote {
* for curl remotes only
char *http_proxy;
+ char *http_proxy_authmethod;
struct remote *remote_get(const char *name);