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

Re: [PATCH 2/3] http: try standard proxy env vars when http.proxy config option is not set

From
Daniel Stenberg <daniel@haxx.se>
Date
Mar 4, 2012, 19:19 UTC
Message-ID
<alpine.DEB.2.00.1203042013410.5351@tvnag.unkk.fr>
In-Reply-To
<7v62eqzrqm.fsf@alter.siamese.dyndns.org>
On Tue, 28 Feb 2012, Junio C Hamano wrote:
Show 8 quoted lines
>> * Why do you (need to?) support HTTP_PROXY when curl doesn't?
>
> Let me add a third bullet point.
>
> I've heard rumors that libcurl on some versions/installations of Mac OS X 
> deliberately ignores the environment. For those who agree with Apple, it 
> would be a regression if we suddenly start the environment ourselves and 
> using it.

I can also add that in libcurl we completely deliberately do not support "HTTP_PROXY" (using all upper case) for a quite simple and boring reason:

The (very old) CGI interface that web servers use(d) to invoke programs server-side passes on header values in environment variables named "HTTP_[header]". So if you send a request to a server that starts a CGI script and use a request header named Proxy: in that request, that header will be passed to the CGI script using the environment variable "HTTP_PROXY" ...

-- 
  / daniel.haxx.se
Previous: Nelson Benitez LeonNext: Jeff King
Message 9 of 24 in “http: try standard proxy env vars when http.proxy config option is not set”
  1. 2/3 http: try standard proxy env vars when http.proxy config option is not setNelson Benitez Leon, Feb 28, 2012
  2. Thomas RastFeb 28, 2012
  3. Nelson Benitez LeonFeb 28, 2012
  4. Thomas RastFeb 28, 2012
  5. Junio C HamanoFeb 28, 2012
  6. Nelson Benitez LeonFeb 29, 2012
  7. Junio C HamanoFeb 29, 2012
  8. Nelson Benitez LeonMar 1, 2012
  9. Daniel StenbergMar 4, 2012
  10. Jeff KingFeb 28, 2012
  11. Sam VilainFeb 28, 2012
  12. Jeff KingFeb 28, 2012
  13. Matthieu MoyFeb 29, 2012
  14. Nelson Benitez LeonFeb 29, 2012
  15. Jeff KingFeb 29, 2012
  16. Nelson Benitez LeonMar 1, 2012
  17. Jeff KingMar 1, 2012
  18. James CloosMar 11, 2012
  19. Junio C HamanoMar 11, 2012
  20. Nelson Benitez LeonMar 13, 2012
  21. Junio C HamanoMar 14, 2012
  22. Nelson Benitez LeonMar 14, 2012
  23. Junio C HamanoMar 14, 2012
  24. Nelson Benitez LeonMar 15, 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.