git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* http.c (curl_easy_setopt and CURLAUTH_ANY)
@ 2015-08-28  6:07 Stephen Kazakoff
  2015-08-28  6:34 ` Daniel Stenberg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stephen Kazakoff @ 2015-08-28  6:07 UTC (permalink / raw)
  To: git

Hi,

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);


I did however find the CURL documentation
(https://secure.php.net/manual/en/function.curl-setopt.php) slightly
conflicting. On one hand, "CURLAUTH_ANY" is effectively the same as
passing "CURLAUTH_BASIC | CURLAUTH_NTLM". But the documentation for
"CURLOPT_PROXYAUTH" says that only "CURLAUTH_BASIC" and
"CURLAUTH_NTLM" are currently supported. By that, I'm assuming
"CURLAUTH_ANY" is not supported.

Also, I do not have access to a NTLM proxy, so I cannot test that
behaviour. Would someone be able to confirm or deny this bug?


Kind regards,
Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-29  0:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-28  6:07 http.c (curl_easy_setopt and CURLAUTH_ANY) Stephen Kazakoff
2015-08-28  6:34 ` Daniel Stenberg
2015-08-28  9:23 ` Johannes Schindelin
2015-08-29  0:33 ` brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).