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

[PATCH] http.proxy: also mention https_proxy and all_proxy

From
Clemens Buchacher <drizzd@aon.at>
Date
Mar 3, 2012, 14:50 UTC
Message-ID
<20120303145053.GA29948@ecki>

The current wording of the http.proxy documentation suggests that http_proxy is somehow equivalent to http.proxy. However, while http.proxy (by the means of curl's CURLOPT_PROXY option) overrides the proxy for both HTTP and HTTPS protocols, the http_proxy environment variable is used only for HTTP. But since the docs mention only http_proxy, a user might expect it to apply to all HTTP-like protocols.

Avoid any such misunderstanding by explicitly mentioning https_proxy and all_proxy as well.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
---

As you can maybe guess from the commit message, I was bitten by this myself. I also found a couple of questions online where users were expecting the http_proxy environment variable to apply to HTTPS as well. Hopefully, this will prevent some confusion in the future.

Clemens
 Documentation/config.txt |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index abeb82b..7d197bb 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1258,9 +1258,10 @@ help.autocorrect::
 	This is the default.
 
 http.proxy::
-	Override the HTTP proxy, normally configured using the 'http_proxy'
-	environment variable (see linkgit:curl[1]).  This can be overridden
-	on a per-remote basis; see remote.<name>.proxy
+	Override the HTTP proxy, normally configured using the 'http_proxy',
+	'https_proxy', and 'all_proxy' environment variables (see
+	linkgit:curl[1]).  This can be overridden on a per-remote basis; see
+	remote.<name>.proxy
 
 http.cookiefile::
 	File containing previously stored cookie lines which should be used
-- 
1.7.9.1
Next: Jeff King
Message 1 of 8 in “http.proxy: also mention https_proxy and all_proxy”
  1. http.proxy: also mention https_proxy and all_proxyClemens Buchacher, Mar 3, 2012
  2. Jeff KingMar 3, 2012
  3. [RFH] 'man:' macro for asciidocJakub Narebski, Mar 3, 2012
  4. Junio C HamanoMar 3, 2012
  5. Clemens BuchacherMar 4, 2012
  6. Junio C HamanoMar 4, 2012
  7. http.proxy: also mention https_proxy and all_proxyClemens Buchacher, Mar 4, 2012
  8. Junio C HamanoMar 5, 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.