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

Re: [PATCH v2 2/2] Update documentation for http.continue option

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 23, 2013, 01:34 UTC
Message-ID
<20131023013400.GB9464@google.com>
In-Reply-To
<20131022233257.GA9464@google.com>
Jonathan Nieder wrote:
> This series seems to be instead about ensuring that authentication
> succeeds before proceding, within the same connection.
(I mean within handling of the same request, not the same connection.)

Using "Expect: 100-Continue" would also be an alternative way to support large pushes that need to follow redirects if we didn't have peff's "http: update base URLs when we see redirects".

Forgive my ignorance: is there a way to do something analagous to that patch but for GSS-Negotiate authentication? In other words, after using the first request to figure out what authentication mechanism the server prefers, could git prefer it in remaining requests to avoid the need to rewind?

I don't see any simple way to do that using the libcurl API. If checking if the server accepts GSS-Negotiate authentication and using that to decide whether to 'Expect: 100-Continue' is easier, that would be fine, too.

If neither is straightforward to do, the configuration seems like a fine workaround --- the documentation would just have to explain that this option is meant to be set on a per-host basis in '[http "<url>"]' sections, to true for hosts you intend to use with GSS-Negotiate auth and false for hosts with broken 100-continue support.

Thanks, Jonathan

Previous: Jonathan NiederNext: brian m. carlson
Message 11 of 18 in “HTTP GSS-Negotiate improvements”
  1. 0/2 HTTP GSS-Negotiate improvementsbrian m. carlson, Oct 11, 2013
  2. 1/2 http: add option to enable 100 Continue responsesbrian m. carlson, Oct 11, 2013
  3. Jonathan NiederOct 11, 2013
  4. brian m. carlsonOct 12, 2013
  5. 2/2 Update documentation for http.continue optionbrian m. carlson, Oct 11, 2013
  6. Jonathan NiederOct 11, 2013
  7. brian m. carlsonOct 12, 2013
  8. brian m. carlsonOct 18, 2013
  9. Junio C HamanoOct 22, 2013
  10. Jonathan NiederOct 22, 2013
  11. Jonathan NiederOct 23, 2013
  12. brian m. carlsonOct 23, 2013
  13. Shawn PearceOct 23, 2013
  14. brian m. carlsonOct 23, 2013
  15. Jeff KingOct 25, 2013
  16. brian m. carlsonOct 25, 2013
  17. Junio C HamanoOct 23, 2013
  18. brian m. carlsonOct 23, 2013

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.