From: Tay Ray Chuan Date: Fri, 27 Nov 2009 15:41:10 GMT Subject: [PATCH 0/2] http: allow multi-pass authentication Message-ID: <20091127234110.7b7e9993.rctay89@gmail.com> In-Reply-To: This patch series applies on top of master. It enables fetching and pushing over http with the most suitable authentication scheme chosen by curl when the http.authAny or GIT_HTTP_AUTH_ANY is set. Authorization headers can also be preserved across requests, with at least 1 curl session being preserved by default. This is especially useful for the smart http protocol, where it is hard to rewind and re- send a request. Nicholas, Martin's patch should lead to similar functionality as your patch (dated Oct 3rd) would. However, unlike your patch, CURLOPT_HTTPAUTH is set even if the user name is not specified explicitly in the remote url, since it's conditional on http.c::user_name being set. I've tested this with Digest, and I believe this should work with NTLM too. gsky, could you try this out with NTLM? =?ISO-8859-15?Q?Martin_Storsj=F6?= (1): Add an option for using any HTTP authentication scheme, not only basic Tay Ray Chuan (1): http: maintain curl sessions Documentation/config.txt | 13 +++++++++++++ http.c | 41 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 2 deletions(-) -- Cheers, Ray Chuan