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

Re: manual http authorization (no netrc)

From
TFtom fogal <tfogal@sci.utah.edu>
Date
Jan 9, 2011, 19:49 UTC
Message-ID
<auto-000024264576@sci.utah.edu>
In-Reply-To
<AANLkTik2QjOOoOcx0E7NeYEbs3YnLFPbG3x5J2RUFmRU@mail.gmail.com>
Tay Ray Chuan <rctay89@gmail.com> writes:
Show 10 quoted lines
> On Fri, Jan 7, 2011 at 1:20 AM, tom fogal <tfogal@sci.utah.edu> wrote:
> > I'm getting authorization errors when I lack a .netrc for an
> > http-based server. Specifically:
> >
> > =A0tf@shigeru tmp $ git clone http://myhost:port/git/io.git
> > =A0Cloning into io...
> > =A0Username:
> > =A0Password:
> > =A0error: The requested URL returned error: 401 (curl_result =3D 22, http=
> > _code =3D
[snip]
Show 5 quoted lines
> hmm, can you try passing username and password in this manner
> 
>   http://<user>:<pwd>@server:port/
> 
> ?

Yes. That worked! Though it was very quiet; the only message I got was "Cloning into io..."; no "remote:" messages or "Receiving " messages. That's neither here nor there, though.

> Also, does your username/password contain special, non-alphanumeric
> characters? I remember there was a change to how we handled those
> some time ago.
Nope, both would encode fine in 7bit ascii.
Thanks much for the workaround,
-tom
Previous: Tay Ray Chuan
Message 3 of 3 in “manual http authorization (no netrc)”
  1. tom fogalJan 6, 2011
  2. Tay Ray ChuanJan 9, 2011
  3. tom fogalJan 9, 2011

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.