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

[PATCH] Allow any HTTP authentication scheme, not only basic

From
Martin Storsjo <martin@martin.st>
Date
Mar 31, 2009, 18:54 UTC
Message-ID
<1238525665-10776-1-git-send-email-martin@martin.st>
In-Reply-To
<1238520686-546-1-git-send-email-martin@martin.st>
Signed-off-by: Martin Storsjo <martin@martin.st>
---
Updated patch, enable only on libcurl versions new enough
 http.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/http.c b/http.c
index 2fc55d6..eae74aa 100644
--- a/http.c
+++ b/http.c
@@ -165,6 +165,9 @@ static CURL *get_curl_handle(void)
 #if LIBCURL_VERSION_NUM >= 0x070907
 	curl_easy_setopt(result, CURLOPT_NETRC, CURL_NETRC_OPTIONAL);
 #endif
+#if LIBCURL_VERSION_NUM >= 0x070a06
+	curl_easy_setopt(result, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
+#endif
 
 	init_curl_http_auth(result);
 
-- 
1.6.0.2
Previous: Martin StorsjoNext: Johannes Schindelin
Message 2 of 4 in “Allow any HTTP authentication scheme, not only basic”
  1. Allow any HTTP authentication scheme, not only basicMartin Storsjo, Mar 31, 2009
  2. Allow any HTTP authentication scheme, not only basicMartin Storsjo, Mar 31, 2009
  3. Johannes SchindelinMar 31, 2009
  4. Martin StorsjöApr 1, 2009

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.