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

Re: [PATCH] http: support CURLPROXY_HTTPS

From
Jeff King <peff@peff.net>
Date
Dec 20, 2017, 11:41 UTC
Message-ID
<20171220114131.GA16643@sigill.intra.peff.net>
In-Reply-To
<a572179929e666e4e598930ec774c4db@dogben.com>
On Wed, Dec 20, 2017 at 10:22:06AM +0800, Wei Shuyu wrote:
Show 14 quoted lines
> On 2017-12-20 04:59, Jonathan Nieder wrote:
> 
> > Thanks for writing this.  Can you give an example of how I'd use it
> > (ideally in the form of a test in t/ so we avoid this functionality
> > regressing, but if that's not straightforward then an example for the
> > commit message is fine as well)?
> 
> Hi Jonathan,
> Its usage is the same as other protocols. Just set http.proxy or
> http_proxy/https_proxy
> environment to https://url.
> 
> To use apache server as a proxy, just add `ProxyRequests On` to an https
> site.

Unfortunately I don't think we have any proxy tests at all in our test suite right now. The sticking point is that we need an actual proxy to test against. :)

If it really is as simple as "ProxyRequests On", then we might be able to convince the existing apache process we run to proxy requests to itself (perhaps on a secondary port?).

-Peff
Previous: Wei Shuyu
Message 6 of 6 in “http: support CURLPROXY_HTTPS”
  1. http: support CURLPROXY_HTTPSWei Shuyu, Dec 19, 2017
  2. Jonathan NiederDec 19, 2017
  3. Junio C HamanoDec 19, 2017
  4. Jonathan NiederDec 19, 2017
  5. Wei ShuyuDec 20, 2017
  6. Jeff KingDec 20, 2017

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.