Re: Support various HTTP authentication methods
- From
Aristotle Pagaltzis <pagaltzis@gmx.de>
- Date
- Feb 4, 2009, 23:25 UTC
- Message-ID
- <20090204232555.GA2358@klangraum.plasmasturm.org>
- In-Reply-To
- <alpine.DEB.1.10.0902042307540.3383@yvahk2.pbagnpgbe.fr>
* Daniel Stenberg <daniel@haxx.se> [2009-02-04 23:15]:
Show 7 quoted lines
> On Wed, 4 Feb 2009, Aristotle Pagaltzis wrote: >> Does that have to do with something being missing in the >> Digest support or is that operator error? If the latter, what >> might be the culprit – how do I diagnose it? > > Can you use curl the command line tool with Digest successfully > against some of those URLs?
Yes, that works.
I have cross-checked the error and access log and here is what happens – I have marked the requests that are sent with correct credentials with a `@` and those which are sent with mismatched credentials with a `#`:
GET /x.git/info/refs : 401 GET @ /x.git/info/refs : 200 GET # /x.git/HEAD : 400 GET /x.git/objects/7e/c6910c4d1733d575f955063fd52b2b0ae7ca5b : 401 GET @ /x.git/objects/7e/c6910c4d1733d575f955063fd52b2b0ae7ca5b : 404 GET @ /x.git/objects/info/http-alternates : 404 GET @ /x.git/objects/info/alternates : 404 GET /x.git/objects/info/packs : 401 GET @ /x.git/objects/info/packs : 200 GET # /x.git/objects/pack/pack-a9bed5817173acdf0a2dc86ddaf36c4f0c7f9ea3.idx : 400
Repeating the clone always yiels this exact sequence.
If I use `curl` manually to fetch those URIs, they work just fine.
> What libcurl version are you using?
$ curl --version
curl 7.16.2 (i686-pc-linux-gnu) libcurl/7.16.2 OpenSSL/0.9.8g
zlib/1.2.3 libidn/1.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IDN IPv6 Largefile NTLM SSL libzRegards,
-- Aristotle Pagaltzis // <http://plasmasturm.org/>