{"thread":{"id":"26218","subject":"manual http authorization (no netrc)","startedAt":"2011-01-06T17:20:59Z","lastAt":"2011-01-09T19:49:13Z","messageCount":3,"participants":["tom fogal","Tay Ray Chuan"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"159045","messageId":"auto-000024252997@sci.utah.edu","threadId":"26218","inReplyTo":null,"subject":"manual http authorization (no netrc)","fromName":"tom fogal","fromEmail":"tfogal@sci.utah.edu","sentAt":"2011-01-06T17:20:59Z","receivedAt":"2011-01-06T17:20:59Z","isPatch":false,"sender":{"key":"tfogal@sci.utah.edu","avatar":null},"body":"I'm getting authorization errors when I lack a .netrc for an http-based\nserver.  Specifically:\n\n  tf@shigeru tmp $ git clone http://myhost:port/git/io.git\n  Cloning into io...\n  Username:\n  Password:\n  error: The requested URL returned error: 401 (curl_result = 22, http_code =\n  401, sha1 = 9c201da4d64e2fd178935b9ebbd6e110a97578d4)\n  error: Unable to find 9c201da4d64e2fd178935b9ebbd6e110a97578d4 under\n  http://shigeru.sci.utah.edu:1234/git/io.git\n  Cannot obtain needed blob 9c201da4d64e2fd178935b9ebbd6e110a97578d4\n  while processing commit b1853d6f6a54cf22e259a75f77770eef53b8cb38.\n  error: Fetch failed.\n\nI did try multiple times; the username/password combo is correct :)\n\nA friend of mine is also experiencing the same problem.  The server is\nrunning git 1.5.6.5; my client is 1.7.3.4, and I'm not sure what the\nother party's is, but it's likely to be recent.\n\nEverything works fine if we just create a ~/.netrc and set things up\nappropriately. `curl-config --version' says \"libcurl 7.18.2\" on my\nworkstation.\n\nWhat have we configured incorrectly?\n\n-tom\n"},{"id":"159245","messageId":"AANLkTik2QjOOoOcx0E7NeYEbs3YnLFPbG3x5J2RUFmRU@mail.gmail.com","threadId":"26218","inReplyTo":"auto-000024252997@sci.utah.edu","subject":"Re: manual http authorization (no netrc)","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2011-01-09T16:35:16Z","receivedAt":"2011-01-09T16:35:16Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"On Fri, Jan 7, 2011 at 1:20 AM, tom fogal <tfogal@sci.utah.edu> wrote:\n> I'm getting authorization errors when I lack a .netrc for an http-based\n> server.  Specifically:\n>\n>  tf@shigeru tmp $ git clone http://myhost:port/git/io.git\n>  Cloning into io...\n>  Username:\n>  Password:\n>  error: The requested URL returned error: 401 (curl_result = 22, http_code =\n>  401, sha1 = 9c201da4d64e2fd178935b9ebbd6e110a97578d4)\n>  error: Unable to find 9c201da4d64e2fd178935b9ebbd6e110a97578d4 under\n>  http://shigeru.sci.utah.edu:1234/git/io.git\n>  Cannot obtain needed blob 9c201da4d64e2fd178935b9ebbd6e110a97578d4\n>  while processing commit b1853d6f6a54cf22e259a75f77770eef53b8cb38.\n>  error: Fetch failed.\n>\n> I did try multiple times; the username/password combo is correct :)\n\nhmm, can you try passing username and password in this manner\n\n  http://<user>:<pwd>@server:port/\n\n?\n\nAlso, does your username/password contain special, non-alphanumeric\ncharacters? I remember there was a change to how we handled those some\ntime ago.\n\n-- \nCheers,\nRay Chuan\n"},{"id":"159253","messageId":"auto-000024264576@sci.utah.edu","threadId":"26218","inReplyTo":"AANLkTik2QjOOoOcx0E7NeYEbs3YnLFPbG3x5J2RUFmRU@mail.gmail.com","subject":"Re: manual http authorization (no netrc)","fromName":"tom fogal","fromEmail":"tfogal@sci.utah.edu","sentAt":"2011-01-09T19:49:13Z","receivedAt":"2011-01-09T19:49:13Z","isPatch":false,"sender":{"key":"tfogal@sci.utah.edu","avatar":null},"body":"Tay Ray Chuan <rctay89@gmail.com> writes:\n> On Fri, Jan 7, 2011 at 1:20 AM, tom fogal <tfogal@sci.utah.edu> wrote:\n> > I'm getting authorization errors when I lack a .netrc for an\n> > http-based server. Specifically:\n> >\n> > =A0tf@shigeru tmp $ git clone http://myhost:port/git/io.git\n> > =A0Cloning into io...\n> > =A0Username:\n> > =A0Password:\n> > =A0error: The requested URL returned error: 401 (curl_result =3D 22, http=\n> > _code =3D\n[snip]\n> hmm, can you try passing username and password in this manner\n> \n>   http://<user>:<pwd>@server:port/\n> \n> ?\n\nYes.  That worked!  Though it was very quiet; the only message I\ngot was \"Cloning into io...\"; no \"remote:\" messages or \"Receiving \"\nmessages.  That's neither here nor there, though.\n\n> Also, does your username/password contain special, non-alphanumeric\n> characters? I remember there was a change to how we handled those\n> some time ago.\n\nNope, both would encode fine in 7bit ascii.\n\nThanks much for the workaround,\n\n-tom\n"}]}