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

Re: Using git with http behind proxy with authentification?

From
DTDarrin Thompson <darrint@progeny.com>
Date
Jul 25, 2005, 22:14 UTC
Message-ID
<1122329673.4378.4.camel@localhost.localdomain>
In-Reply-To
<42E21A33.6010804@de.bosch.com>
On Sat, 2005-07-23 at 12:21 +0200, Dirk Behme wrote:
Show 17 quoted lines
> In the past, for bk I used
> 
> $ export http_proxy=http://user:password@someproxy.some.where:8080/
> 
> which worked. But no luck with cogito/git.
> 
> Looking into recent cogito/git, the reason for this seems to be that 
> cogito/git uses a combination of wget in scripts and curl in compiled 
> executables. Having a look to cg-pull script, this script uses wget. 
> Then, it calls git-http-pull if it thinks that http should be used. 
> Looking at http-pull.c shows that there curl is used for http access. If 
> I understand it correctly from man pages, wget understands user:password 
> syntax of http_proxy environment, but curl doesn't. As I understand it 
> curl understands only 'someproxy.some.where:8080' and wants the user and 
> password given as parameter of curl_easy_setopt. The curl_easy_setopt 
> man page tells something about CURLOPT_PROXYUSERPWD parameter.
> 

For git itself everything is curl only now as far as I know. That's new as of hours after you sent this.

Git turns on .netrc for doing 401 http auth. I wonder if curl will consult .netrc for 407 proxy credentials as well?

Somebody would have to read code and/or try it.

-- Darrin

Previous: Dirk Behme
Message 2 of 2 in “Using git with http behind proxy with authentification?”
  1. Dirk BehmeJul 23, 2005
  2. Darrin ThompsonJul 25, 2005

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.