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

Re: What's cooking in git.git (Apr 2012, #09; Mon, 23)

From
NLNelson Benitez Leon <nelsonjesus.benitez@seap.minhap.es>
Date
Apr 24, 2012, 09:14 UTC
Message-ID
<4F966F0C.6090504@seap.minhap.es>
In-Reply-To
<xmqq8vhmhzpk.fsf@junio.mtv.corp.google.com>
On 04/24/2012 12:04 AM, Junio C Hamano wrote:
Show 10 quoted lines
> 
> * nl/http-proxy-more (2012-04-19) 7 commits
>  - http: fix proxy password passing
>  - http: fix proxy authentication
>  - http: rename HTTP_REAUTH to HTTP_AUTH_RETRY
>  - http: Avoid limit of retrying request only twice
>  - http: handle proxy authentication failure (error 407)
>  - http: handle proxy proactive authentication
>  - http: try http_proxy env var when http.proxy config option is not set
> 

I'm a bit lost with the state of this, I read your last discussion and you sent patches to support a proxy url without the protocol part, I assume that's done and apart from that there is a bug in the LIBCURL_VERSION which is an easy fix I could send a patch for.

> The code to talk to http proxies learn to use the same credential
> API used to talk to the final http destinations.  This still needs
> to peek into $ENV{HTTPS_PROXY}.
My original patch already peeked in HTTPS_PROXY env var, I post the
relevant part:
 
+	if (!curl_http_proxy) {
+		const char *env_proxy, *no_proxy;
+		char *env_proxy_var;
+		int read_http_proxy;
+		struct strbuf buf = STRBUF_INIT;
+		credential_from_url(&cre_url, url);
+		strbuf_addf(&buf, "%s_proxy", cre_url.protocol);
+		env_proxy_var = strbuf_detach(&buf, NULL);
+		env_proxy = getenv(env_proxy_var);
                ^^ HERE ^^
+		if (env_proxy) {
+			read_http_proxy = 1;
+			no_proxy = getenv("no_proxy");
+			if (no_proxy && (!strcmp("*", no_proxy) || strstr(no_proxy, cre_url.host)))
+				read_http_proxy = 0;
+			
+			if (read_http_proxy)
+				curl_http_proxy = xstrdup(env_proxy);
+		}
+		free(env_proxy_var);
+	}
 	if (curl_http_proxy) {
so are you referring to something else ?
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 13 in “What's cooking in git.git (Apr 2012, #09; Mon, 23)”
  1. Junio C HamanoApr 23, 2012
  2. Nelson Benitez LeonApr 24, 2012
  3. Junio C HamanoApr 24, 2012
  4. Try an uppercase version of $prot_proxy env varNelson Benitez Leon, Apr 26, 2012
  5. Jeff KingApr 26, 2012
  6. Junio C HamanoApr 26, 2012
  7. Nelson Benitez LeonApr 26, 2012
  8. Jeff KingApr 27, 2012
  9. Junio C HamanoApr 27, 2012
  10. Junio C HamanoApr 26, 2012
  11. What's cooking (incremental)Junio C Hamano, Apr 25, 2012
  12. Thomas RastApr 25, 2012
  13. Junio C HamanoApr 25, 2012

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.