Re: http.c (curl_easy_setopt and CURLAUTH_ANY)
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 28, 2015, 09:23 UTC
- Message-ID
- <e2b492394d92d8aecf45a53ee6af1875@www.dscho.org>
- In-Reply-To
- <CAF0pADEsO0y_6wcx-xNwRqjauJmMcQ8mUmbUbbWCBrK2gQ1quA@mail.gmail.com>
Hi Stephen,
On 2015-08-28 08:07, Stephen Kazakoff wrote:
Show 14 quoted lines
> When I'm behind a proxy (with BASIC authentication), I'm unable to > perform a git clone. > > I managed to fix this by editing http.c and recompiling. The change > I'd like to propose is to line 452. > > > From: > > curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY); > > To: > > curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_BASIC | CURLAUTH_NTLM);
But `CURLAUTH_ANY` should imply `_BASIC` and `_NTLM`. I remember that the `_ANY` was supposed to avoid hard-coding things.
According to
https://github.com/bagder/curl/blob/ac7be02e695af95e93b3f5a40b80dcab782f5321/include/curl/curl.h#L651
it should actually imply even more. Maybe that is the problem? Could you debug further by setting the environment variable GIT_CURL_VERBOSE=1?
Ciao, Johannes