git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: Daniel Stenberg <daniel@haxx.se>
Cc: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>, git@vger.kernel.org
Subject: Re: GSS-Negotiate authentication requires that all data fit into postbuffer
Date: Sun, 6 Oct 2013 15:29:08 +0000	[thread overview]
Message-ID: <20131006152908.GD3460@vauxhall.crustytoothpaste.net> (raw)
In-Reply-To: <alpine.DEB.2.00.1310061658330.6366@tvnag.unkk.fr>

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

On Sun, Oct 06, 2013 at 05:00:02PM +0200, Daniel Stenberg wrote:
> On Sun, 6 Oct 2013, Ilari Liusvaara wrote:
> 
> >>GSS-Negotiate authentication always requires a rewind with CURL.
> 
> >Isn't 'Expect: 100-Continue' meant for stuff like this (not that
> >it is always supported properly)?
> 
> Yes it is and libcurl uses 100-Continue by default for that purpose.
> But the harsh reality is that lots of (most?) servers just don't
> care and aren't setup to respond properly and instead we end up
> having to send data multiple times in vain.

If there's a way to make Apache with mod_auth_kerb do that with curl,
then it doesn't require a change to git, and I'm happy to make it on my
end.  But using the curl command line client, I don't see an Expect:
100-continue anywhere during the connection using Debian's curl
7.32.0-1.  Do I need to send a certain amount of data to see that
behavior?

The command line I used was

  curl -v -d '0000' -H'Transfer-Encoding: chunked' -H'Content-Type: application/x-git-receive-pack-request' --negotiate -u bmc: https://git.crustytoothpaste.net/git/bmc/test.git/git-receive-pack

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2013-10-06 15:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-06  0:42 GSS-Negotiate authentication requires that all data fit into postbuffer brian m. carlson
2013-10-06 10:50 ` Ilari Liusvaara
2013-10-06 15:00   ` Daniel Stenberg
2013-10-06 15:29     ` brian m. carlson [this message]
2013-10-06 15:38       ` Daniel Stenberg
2013-10-06 17:50         ` brian m. carlson
2013-10-07 12:02           ` Jeff King
2013-10-07 22:56             ` brian m. carlson

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=20131006152908.GD3460@vauxhall.crustytoothpaste.net \
    --to=sandals@crustytoothpaste.net \
    --cc=daniel@haxx.se \
    --cc=git@vger.kernel.org \
    --cc=ilari.liusvaara@elisanet.fi \
    /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).