git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Daniel StenbergNext: brian m. carlson
Message 3 of 4 in “http.c (curl_easy_setopt and CURLAUTH_ANY)”
  1. Stephen KazakoffAug 28, 2015
  2. Daniel StenbergAug 28, 2015
  3. Johannes SchindelinAug 28, 2015
  4. brian m. carlsonAug 29, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.