git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tay Ray Chuan <rctay89@gmail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: "Martin Storsj?" <martin@martin.st>,
	git@vger.kernel.org, Nicholas Miell <nmiell@gmail.com>,
	gsky51@gmail.com, Clemens Buchacher <drizzd@aon.at>,
	Mark Lodato <lodatom@gmail.com>,
	Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH/RFC] Allow curl to rewind the RPC read buffer
Date: Wed, 2 Dec 2009 00:12:17 +0800	[thread overview]
Message-ID: <be6fef0d0912010812i54531ce0n18e4615c3f408569@mail.gmail.com> (raw)
In-Reply-To: <20091201160150.GB21299@spearce.org>

Hi,

On Wed, Dec 2, 2009 at 12:01 AM, Shawn O. Pearce <spearce@spearce.org> wrote:
> In theory, since the cURL session stays active, we would have
> received the 401 authentication error during the initial
> "GET $GIT_DIR/info/refs?service=git-$service" request, and the subsequent
> "POST $GIT_DIR/git-$service" requests would automatically include the
> authentication data.
>
> That's theory.  Reality doesn't always agree with my theories.  :-)

that's because the curl session where the 401 was received (and thus
successful authentication takes place) is closed.

I sent out a patch series recently which contains a patch to maintain
at least one curl session throughout a http session (from http_init()
to http_cleanup()), you can see this here:

  http://www.spinics.net/lists/git/msg118190.html

-- 
Cheers,
Ray Chuan

  reply	other threads:[~2009-12-01 16:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02 17:28 HTTP NTLM Authentication gsky
2009-10-02 19:04 ` [PATCH] Use the best HTTP authentication method supported by the server Nicholas Miell
2009-11-27 15:41 ` [PATCH 0/2] http: allow multi-pass authentication Tay Ray Chuan
2009-04-14 21:56   ` [PATCH v2] Add an option for using any HTTP authentication scheme, not only basic Martin Storsjö
2009-04-14 20:52     ` [PATCH] " Martin Storsjö
2009-04-14 21:08       ` Johannes Schindelin
2009-04-14 21:15         ` Martin Storsjö
2009-04-14 21:42           ` Johannes Schindelin
2009-12-01 10:28   ` [PATCH 0/2] http: allow multi-pass authentication Martin Storsjö
2009-12-01 10:33     ` [PATCH/RFC] Allow curl to rewind the RPC read buffer Martin Storsjö
2009-12-01 16:01       ` Shawn O. Pearce
2009-12-01 16:12         ` Tay Ray Chuan [this message]
2009-12-01 16:16           ` Shawn O. Pearce
2009-12-01 16:51         ` Martin Storsjö
2009-12-01 17:49       ` Junio C Hamano
2009-12-02  2:32         ` Tay Ray Chuan
2009-12-02  7:45           ` Martin Storsjö
2009-12-01 10:37     ` [PATCH/RFC] Allow curl to rewind the RPC read buffer at any time Martin Storsjö
2009-12-01 16:14       ` Shawn O. Pearce
2009-12-01 16:59         ` Martin Storsjö
2009-12-02  3:15           ` Tay Ray Chuan
2009-12-01 18:18         ` Daniel Stenberg
2009-12-02  2:03           ` Tay Ray Chuan
2009-12-02  9:19             ` Daniel Stenberg
2009-12-02  9:32               ` Martin Storsjö
2009-12-02 10:04                 ` Daniel Stenberg
2009-11-27 15:42 ` [PATCH 1/2] http: maintain curl sessions Tay Ray Chuan
2009-11-27 15:43 ` [PATCH 2/2] Add an option for using any HTTP authentication scheme, not only basic Tay Ray Chuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=be6fef0d0912010812i54531ce0n18e4615c3f408569@mail.gmail.com \
    --to=rctay89@gmail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=drizzd@aon.at \
    --cc=git@vger.kernel.org \
    --cc=gsky51@gmail.com \
    --cc=lodatom@gmail.com \
    --cc=martin@martin.st \
    --cc=nmiell@gmail.com \
    --cc=spearce@spearce.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).