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

Re: [PATCH v2 2/3] http: try http_proxy env var when http.proxy config option is not set

From
Jeff King <peff@peff.net>
Date
Mar 1, 2012, 21:01 UTC
Message-ID
<20120301210129.GD17631@sigill.intra.peff.net>
In-Reply-To
<7vy5rkm91t.fsf@alter.siamese.dyndns.org>
On Thu, Mar 01, 2012 at 11:10:38AM -0800, Junio C Hamano wrote:
Show 13 quoted lines
> Nelson Benitez Leon <nelsonjesus.benitez@seap.minhap.es> writes:
> 
> > CuRL already reads it, but if $http_proxy has username but no password
> > curl will not ask you for the password.. so we read it ourselves to
> > detect that and ask for the password.
> 
> Please stop the double-dot.  Also your capitalization for cURL is screwed
> up.
> 
> More importantly, please describe what happens after "will not ask".
> "will not ask you for the password and the connection fails"?
> "will not ask you for the password and the gives an error message saying
> 'authentication failure'"?

When we need to authenticate for the destination webserver, we detect an HTTP 401, _then_ ask for the credentials, and retry the request. I'm curious what the error condition is for the authentication failure, and if we can do the same here (from a brief skim of rfc2616, it looks like it should be a 407, but I do not even have a proxy set up to try).

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “http: try http_proxy env var when http.proxy config option is not set”
  1. 2/3 http: try http_proxy env var when http.proxy config option is not setNelson Benitez Leon, Mar 1, 2012
  2. Sam VilainMar 1, 2012
  3. Junio C HamanoMar 1, 2012
  4. Junio C HamanoMar 1, 2012
  5. Jeff KingMar 1, 2012
  6. Junio C HamanoMar 1, 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.